first commit of rotate-backups container
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-08-15 18:04:11 -07:00
commit 9f142c15e4
4 changed files with 41 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
ARG PYTHON_VERSION=3
ARG ALPINE_VERSION=3.18
ARG ROTATE_BACKUPS_VERSION=latest
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
RUN apk update && apk add less
RUN pip install rotate-backups==${ROTATE_BACKUPS_VERSION}
RUN mkdir /data
COPY rotate.sh /opt/rotate.sh
RUN chmod +x /opt/rotate.sh
ENTRYPOINT ["/opt/rotate.sh"]
CMD ["--help"]