1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-27 23:48:15 +03:00
vwdump/Dockerfile
jmqm 479d78b9e3
Combine scripts, refactor, minor README improvements (#26)
- Combined backup and delete scripts.
  - Consequently, deleted `backup.sh` and `delete.sh`.
  - Changed Dockerfile and `entrypoint.sh`.
- Refactored script.
- Docker compose example in README now includes network property _(is it called a property?)_.
- README volume permission requirements are placed at better locations.
2022-01-02 19:37:08 -06:00

26 lines
463 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 DELETE_AFTER 0
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY script.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"]