2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Set UID in dockerfiles

This commit is contained in:
asonix 2020-06-08 13:22:12 -05:00
parent 15dc2b4b48
commit 992baf9211
3 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ COPY --from=builder /opt/build/repo/target/x86_64-unknown-linux-musl/release/$BI
RUN \ RUN \
apk add tini && \ apk add tini && \
addgroup -g $GID pictrs && \ addgroup -g $GID pictrs && \
adduser -D -G pictrs -g "" -h /opt/pictrs pictrs adduser -D -G pictrs -u $UID -g "" -h /opt/pictrs pictrs
RUN \ RUN \
chown -R pictrs:pictrs /mnt chown -R pictrs:pictrs /mnt

View file

@ -62,7 +62,7 @@ COPY --from=builder /opt/build/repo/target/arm-unknown-linux-musleabihf/release/
RUN \ RUN \
apk add tini && \ apk add tini && \
addgroup -g $GID pictrs && \ addgroup -g $GID pictrs && \
adduser -D -G pictrs -g "" -h /opt/pictrs pictrs adduser -D -G pictrs -u $UID -g "" -h /opt/pictrs pictrs
RUN \ RUN \
chown -R pictrs:pictrs /mnt chown -R pictrs:pictrs /mnt

View file

@ -62,7 +62,7 @@ COPY --from=builder /opt/build/repo/target/aarch64-unknown-linux-musl/release/$B
RUN \ RUN \
apk add tini && \ apk add tini && \
addgroup -g $GID pictrs && \ addgroup -g $GID pictrs && \
adduser -D -G pictrs -g "" -h /opt/pictrs pictrs adduser -D -G pictrs -u $UID -g "" -h /opt/pictrs pictrs
RUN \ RUN \
chown -R pictrs:pictrs /mnt chown -R pictrs:pictrs /mnt