-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 746 Bytes
/
Dockerfile
File metadata and controls
36 lines (24 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:buster-slim
USER root
# Setup
RUN apt-get update
RUN apt-get install -y ca-certificates wget --no-install-recommends
RUN mkdir -p /usr/local/bin && mkdir -p /build
ARG DUPLICACY_VERSION
ARG DUPLICACY_UTIL_VERSION
ENV DUPLICACY_VERSION ${DUPLICACY_VERSION:-2.2.3}
ENV DUPLICACY_UTIL_VERSION ${DUPLICACY_UTIL_VERSION:-1.5}
COPY scripts/* /usr/local/bin/
RUN download-from-github
# Real container
FROM debian:buster-slim
USER root
RUN apt-get update && \
apt-get install -y ca-certificates --no-install-recommends
RUN mkdir -p /usr/local/bin
COPY --from=0 /usr/local/bin/duplicacy* /usr/local/bin/
COPY bin/* /usr/local/bin/
RUN chmod 755 /usr/local/bin/*
# Where to copy from
VOLUME /data
ENTRYPOINT ["docker-entrypoint"]