diff --git a/Dockerfile b/Dockerfile index 03c9b2d..b7ee71b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,14 +56,14 @@ COPY start.sh start.sh # make the script executable RUN chmod +x start.sh +# 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 +USER docker + # Install the magic wrapper. ADD ./wrapdocker.sh /usr/local/bin/wrapdocker.sh RUN sudo chmod +x /usr/local/bin/wrapdocker.sh RUN sudo sed -i "2 i\exec sudo /usr/local/bin/wrapdocker.sh &" start.sh -# 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 -USER docker - # set the entrypoint to the start.sh script ENTRYPOINT ["./start.sh"] \ No newline at end of file diff --git a/README.md b/README.md index 97b2efa..61c07c9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Docker Github Action Runner -## Version 1.0.10 \ No newline at end of file +## Version 1.0.11 \ No newline at end of file