We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c62a1a commit 1dfaf56Copy full SHA for 1dfaf56
docker/Dockerfile
@@ -21,11 +21,9 @@ WORKDIR /source
21
# re https://github.com/docker/docker/issues/7198#issuecomment-158566258
22
RUN adduser --no-create-home --disabled-login --gecos "" crater --uid 1000
23
24
-# The run.sh script configures the user id, controlled by -e USER_ID, and then
+# Configure the user id, controlled by -e USER_ID, and then
25
# runs some command, controlled by -e CMD
26
-COPY run.sh /run.sh
27
-CMD ["/run.sh"]
+CMD ["bash", "-c", "usermod -u \"$USER_ID\" crater && exec su crater -c \"/run2.sh $CMD\""]
28
29
-# run.sh script runs run2.sh under su, which sets up the environment and runs
30
-# $CMD
+# sets up the environment for $CMD
31
COPY run2.sh /run2.sh
docker/run.sh
0 commit comments