Skip to content

Commit

Permalink
Fix permission error with the default setup since v0.9.4 (#142)
Browse files Browse the repository at this point in the history
Fixes #138
  • Loading branch information
Yusuke Kuoka authored Oct 25, 2020
1 parent faaca10 commit 6d78fb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
&& install -o root -g root -m 755 docker/docker /usr/local/bin/docker \
&& rm -rf docker docker.tgz \
&& adduser --disabled-password --gecos "" --uid 1000 runner \
&& groupadd docker \
&& usermod -aG sudo runner \
&& usermod -aG docker runner \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers

# Runner download supports amd64 as x64
Expand All @@ -67,6 +69,6 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
COPY entrypoint.sh /runner
COPY patched /runner/patched

USER runner:runner
USER runner
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/runner/entrypoint.sh"]

0 comments on commit 6d78fb0

Please sign in to comment.