File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ LABEL \
14
14
org.opencontainers.image.source="https://github.com/coder/coder" \
15
15
org.opencontainers.image.version="$CODER_VERSION"
16
16
17
- # The coder binary is injected by scripts/build_docker.sh.
18
- COPY --chown=coder:coder --chmod=755 coder /opt/coder
19
-
20
17
# Create coder group and user. We cannot use `addgroup` and `adduser` because
21
18
# they won't work if we're building the image for a different architecture.
22
- COPY --chown=root:root --chmod=644 group passwd /etc/
23
- COPY --chown=coder:coder --chmod=700 empty-dir /home/coder
19
+ COPY --chown=0:0 --chmod=644 group passwd /etc/
20
+ COPY --chown=1000:1000 --chmod=700 empty-dir /home/coder
21
+
22
+ # The coder binary is injected by scripts/build_docker.sh.
23
+ COPY --chown=1000:1000 --chmod=755 coder /opt/coder
24
24
25
- USER coder:coder
25
+ USER 1000:1000
26
26
ENV HOME=/home/coder
27
27
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt
28
28
WORKDIR /home/coder
You can’t perform that action at this time.
0 commit comments