diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac36cd6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.8-alpine as base +FROM base as builder +RUN mkdir /install +COPY . /src +RUN pip install --prefix=/install /src + +FROM base +# Added system deps for runtime. +RUN apk add less +COPY --from=builder /install /usr/local +COPY rotate_backups/ /app +WORKDIR /app + +ENTRYPOINT ["rotate-backups"] +CMD ["-h"]