Skip to content

Commit 50f9c20

Browse files
committed
Add Dockerfile for rotate-backups.
1 parent 4634688 commit 50f9c20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.8-alpine as base
2+
FROM base as builder
3+
RUN mkdir /install
4+
COPY . /src
5+
RUN pip install --prefix=/install /src
6+
7+
FROM base
8+
# Added system deps for runtime.
9+
RUN apk add less
10+
COPY --from=builder /install /usr/local
11+
COPY rotate_backups/ /app
12+
WORKDIR /app
13+
14+
ENTRYPOINT ["rotate-backups"]
15+
CMD ["-h"]

0 commit comments

Comments
 (0)