mirror of
https://github.com/xzeldon/vwdump.git
synced 2025-07-18 23:26:39 +03:00

**README** - Overhaul; changed docs to be better aligned to the new `backup.sh`. - Add example `docker-compose`. **Dockerfile** - Install `zip`. - Remove installation of `sqlite`. - Remove unnecessary variables. **backup.sh** - Overhaul; now zips all required and recommended files and directories stated at [vaultwarden docs](https://github.com/dani-garcia/vaultwarden/wiki/Backing-up-your-vault). - Removed deleting old backups; will be added later on in a separate script. **entrypoint.sh** - Removed creating folders.
28 lines
525 B
Docker
28 lines
525 B
Docker
ARG ARCH=
|
|
FROM ${ARCH}alpine:latest
|
|
|
|
RUN addgroup -S app && adduser -S -G app app
|
|
|
|
RUN apk add --no-cache \
|
|
busybox-suid \
|
|
su-exec \
|
|
zip \
|
|
tzdata
|
|
|
|
ENV CRON_TIME "0 5 * * *"
|
|
ENV UID 100
|
|
ENV GID 100
|
|
ENV CRONFILE /etc/crontabs/root
|
|
ENV LOGFILE /app/log/backup.log
|
|
ENV DELETE_AFTER 0
|
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
COPY backup.sh /app/
|
|
|
|
RUN mkdir /app/log/ \
|
|
&& chown -R app:app /app/ \
|
|
&& chmod -R 777 /app/ \
|
|
&& chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|