rotate-backups/Dockerfile
James Brumond 4b6f979173
Some checks reported warnings
Build container images / build (push) Has been cancelled
back to hard-coded rotate-backups version
2023-08-16 18:10:33 -07:00

22 lines
430 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
# fixme: why the fuck does this not work??
# 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"]