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 \
apk add tini && \
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 \
chown -R pictrs:pictrs /mnt

View file

@ -62,7 +62,7 @@ COPY --from=builder /opt/build/repo/target/arm-unknown-linux-musleabihf/release/
RUN \
apk add tini && \
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 \
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 \
apk add tini && \
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 \
chown -R pictrs:pictrs /mnt