rotate-backups/Dockerfile
James Brumond d1780aa95b
Some checks failed
Build container images / build (push) Failing after 20s
try removing build arg from workflow
2023-08-16 17:21:58 -07:00

20 lines
383 B
Docker

ARG PYTHON_VERSION=3
ARG ALPINE_VERSION=3.18
ARG ROTATE_BACKUPS_VERSION=8.1
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"]