-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
31 lines (25 loc) · 1.12 KB
/
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
FROM docker:27
LABEL maintainer="BlueT - Matthew Lien - 練喆明 <bluet@bluet.org>"
# Docker defaults
ENV CRONICLE_VERSION=0.9.63
ENV CRONICLE_base_app_url='http://localhost:3012'
ENV CRONICLE_WebServer__http_port=3012
ENV CRONICLE_WebServer__https_port=443
ENV EDITOR=nano
RUN apk add --no-cache nodejs npm git curl perl bash perl-pathtools tar procps nano tini python3
RUN mkdir -p /opt/cronicle \
&& cd /opt/cronicle \
&& curl -L https://github.com/jhuckaby/Cronicle/archive/v${CRONICLE_VERSION}.tar.gz | tar zxvf - --strip-components 1 \
&& npm install \
&& node bin/build.js dist \
&& rm -Rf /root/.npm
# Runtime user
# RUN adduser cronicle -D -h /opt/cronicle
# RUN adduser cronicle docker
WORKDIR /opt/cronicle/
ADD docker/entrypoint.sh /entrypoint.sh
EXPOSE 3012
# data volume is also configured in entrypoint.sh
VOLUME ["/opt/cronicle/data", "/opt/cronicle/logs", "/opt/cronicle/plugins"]
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["sh", "/entrypoint.sh"]