Update Dockerfile to use entrypoint.sh instead of start.sh

This commit is contained in:
Palash Tyagi 2025-05-03 22:25:17 +01:00
parent d81da1786d
commit 8417b9e5d7

View File

@ -18,13 +18,13 @@ RUN cd /home/docker && mkdir actions-runner && cd actions-runner \
RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh
COPY start.sh start.sh COPY entrypoint.sh entrypoint.sh
# make the script executable # make the script executable
RUN chmod +x start.sh RUN chmod +x entrypoint.sh
# since the config and run script for actions are not allowed to be run by root, # since the config and run script for actions are not allowed to be run by root,
# set the user to "docker" so all subsequent commands are run as the docker user # set the user to "docker" so all subsequent commands are run as the docker user
USER docker USER docker
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./entrypoint.sh"]