forked from belsander/docker-cronicle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (23 loc) · 1.01 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
32
33
34
FROM node:alpine
RUN apk add --no-cache git curl wget perl bash perl-pathtools tar \
procps tini g++
RUN apk add --no-cache python3 python3-dev && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN wget -O /bin/docker https://master.dockerproject.org/linux/x86_64/docker
RUN chmod 7 /bin/docker
RUN curl -s https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | node
RUN pip install requests
RUN mkdir /app
WORKDIR /app
COPY entrypoint.sh /app/
#this will fix the hostnames for docker
COPY adjust_hostname.py /app/
EXPOSE 3012
#$(which docker):/usr/bin/docker to call for docker host inside the docker
VOLUME ["/opt/cronicle/data", "/opt/cronicle/logs", "/opt/cronicle/plugins"]
CMD ["./entrypoint.sh"]