-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
26 lines (18 loc) · 911 Bytes
/
dockerfile
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
######################################################################
# Dockerfile for basic docker image to give nightly backup of /opt #
# /opt folder holds all persistent data for docker containers #
# All file & folder references are as from this docker container #
# Requires bind mounts for homepi_opt & homeserver_backup_homepi #
# To /opt and /mnt/homeserver_backup_zeropi respectively #
# updated to zeropi dated 20241123 #
######################################################################
FROM alpine:latest
RUN mkdir /zeropi_opt && mkdir /homeserver_backup_zeropi
COPY entrypoint.sh .
RUN chmod +x ./entrypoint.sh
RUN apk add --no-cache tzdata
ENV TZ: "Europe/London"
# need the next line as TZ line has no effect
RUN cp /usr/share/zoneinfo/Europe/London /etc/localtime
ENTRYPOINT ["./entrypoint.sh"]
# CMD ["crond","-f"]