feat: create a built-in non-root user named backuptool

This commit is contained in:
ttionya
2022-07-01 20:28:14 +08:00
parent 93487c38a1
commit d5f63b147c
+3 -1
View File
@@ -9,6 +9,8 @@ COPY scripts/*.sh /app/
RUN chmod +x /app/*.sh \
&& apk add --no-cache bash heirloom-mailx p7zip sqlite supercronic tzdata \
&& ln -sf /tmp/localtime /etc/localtime \
&& mkdir -m 777 /bitwarden
&& mkdir -m 777 /bitwarden \
&& addgroup -g 1100 backuptool \
&& adduser -u 1100 -Ds /bin/sh -G backuptool backuptool
ENTRYPOINT ["/app/entrypoint.sh"]