1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-28 03:48:13 +03:00
vwdump/Dockerfile
jmqm 6974723efe
Switch from zip to tar.xz (#6)
**README.md**
- Minor text change.

**Dockerfile**
- Remove installation of `zip`.
- Add installation if `xz`.

**backup.sh**
- Switch to `tar.xz` archive _(`zip` was messing up permissions)_.
- `echo` when backups start and end.
2021-05-26 00:11:57 -05:00

28 lines
527 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 \
xz \
tzdata
ENV CRON_TIME "* */12 * * *"
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"]