All checks were successful
Build container images / build (push) Successful in 45s
18 lines
292 B
Docker
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"]
|