Allow backup to be run as non-root user (#366)

* Allow backup to be run as non-root user

* Document usage as non-root user

* Also test /etc access

* Choose better name for doc
This commit is contained in:
Frederik Ring
2024-02-21 17:44:24 +01:00
committed by GitHub
parent dd8ff5ee0c
commit f64aaa6e24
11 changed files with 131 additions and 6 deletions

View File

@@ -13,7 +13,8 @@ FROM alpine:3.19
WORKDIR /root
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates && \
chmod a+rw /var/lock
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup