-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 992 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
26
27
28
29
30
31
32
33
FROM alpine:latest
LABEL maintainer="lapicidae"
ENV TZ="Europe/Berlin"
# copy local files
COPY root/ /
RUN echo "**** install runtime packages ****" && \
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk add --no-cache --upgrade \
bash \
coreutils \
curl \
grep \
tzdata && \
apk add --no-cache rsstail@testing && \
echo "*********** set timezone *********" && \
ln -s /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ >/etc/timezone && \
echo "********* set permissions ********" && \
chmod 755 /usr/bin/docker-entrypoint.sh && \
echo "************ link files **********" && \
ln -s /usr/bin/docker-entrypoint.sh /docker-entrypoint.sh && \
echo "************ init cron ***********" && \
crontab /defaults/fa-cron && \
echo "************* cleanup ************" && \
rm -rf /var/cache/apk/*
VOLUME ["/config"]
ENTRYPOINT ["/docker-entrypoint.sh"]