rotate-backups/Dockerfile
James Brumond 8e542ea9cf
Some checks failed
Build container images / build (push) Failing after 22s
debugging
2023-08-16 18:08:55 -07:00

19 lines
346 B
Docker

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"]