rotate-backups/Dockerfile
James Brumond 3388e809ba
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Build container images / build (push) Successful in 44s
separate workflow for build vs publish
2023-08-16 17:03:16 -07:00

20 lines
388 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==8.1
# 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"]