1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-28 02:28:14 +03:00
vwdump/Dockerfile
jmqm d002dc9b29
Fix delete not running
- `delete` script was not running as the file was not found. This is fixed.
2021-07-15 00:49:16 -05:00

28 lines
516 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 "0 */12 * * *"
ENV UID 100
ENV GID 100
ENV CRONFILE /etc/crontabs/root
ENV DELETE_AFTER 0
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY backup.sh /app/
COPY delete.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"]