forked from ixc/restic-pg-dump-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 647 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM restic/restic:0.12.0
RUN apk update \
&& apk upgrade \
&& apk add \
bash \
postgresql-client \
tini \
&& apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
util-linux \
&& rm -rf /var/cache/apk/*
ENV DOCKERIZE_VERSION=0.5.0
RUN wget -nv -O - "https://github.com/jwilder/dockerize/releases/download/v${DOCKERIZE_VERSION}/dockerize-linux-amd64-v${DOCKERIZE_VERSION}.tar.gz" | tar -xz -C /usr/local/bin/ -f -
ENV PATH="$PATH:/opt/restic-pg-dump/bin"
ENTRYPOINT ["/sbin/tini", "--", "entrypoint.sh"]
CMD ["crond.sh"]
WORKDIR /opt/restic-pg-dump/
COPY . /opt/restic-pg-dump/