From 17c7eb28a829cd5d9296f495637103ec0687e300 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sat, 11 Nov 2023 18:29:22 +0000 Subject: [PATCH] Trying to fix containers running docker. --- Dockerfile | 8 ++++---- README.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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