Skip to content

Commit e8aa270

Browse files
committed
[fix] UID/GID defaults
1 parent c42936b commit e8aa270

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch.dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ARG APP_UID=1000
2+
ARG APP_GID=1000
3+
14
# :: Util
25
FROM 11notes/util AS util
36

@@ -63,7 +66,7 @@
6366
COPY ./rootfs /
6467
RUN set -ex; \
6568
chmod +x -R /usr/local/bin; \
66-
chown -R 1000:1000 \
69+
chown -R ${APP_UID}:${APP_GID} \
6770
${APP_ROOT} \
6871
/opt/py-kms;
6972

@@ -78,4 +81,4 @@
7881
HEALTHCHECK --interval=5s --timeout=2s CMD netstat -an | grep -q 1688 || exit 1
7982

8083
# :: Start
81-
USER docker
84+
USER ${APP_UID}:${APP_GID}

0 commit comments

Comments
 (0)