forked from haq/rclone-database-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 660 Bytes
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 660 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
37
FROM alpine:edge
# install required packages
RUN apk --no-cache -U add \
fuse \
mariadb-client \
ca-certificates \
postgresql-client \
sqlite \
tzdata \
libffi-dev \
musl-dev \
libressl-dev \
gcc
# create the app directory
WORKDIR /app
# copy project folder
COPY . ./
# copy rclone binary
COPY --from=rclone/rclone:latest /usr/local/bin/rclone /usr/bin/rclone
# copy mysqldump binary
# COPY --from=linuxserver/mariadb:alpine /usr/bin/mysqldump /usr/bin/mysqldump
# volume for rclone config
VOLUME ["/root/.config/rclone"]
# entrypoint
ENTRYPOINT ["/app/src/entrypoint.sh"]
# cmd
CMD ["crond", "-l", "2", "-f"]