rotate-backups/Dockerfile
James Brumond 6a7c884bc6
All checks were successful
Build container images / build (push) Successful in 45s
cleanup ROTATE_BACKUPS_VERSION build arg that for some reason does not work
2023-08-16 17:24:26 -07:00

18 lines
292 B
Docker

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