forked from alseambusher/crontab-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (24 loc) · 768 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
34
35
36
37
# docker run -d -p 8000:8000 alseambusher/crontab-ui
FROM alpine:3.10
RUN mkdir /crontab-ui; touch /etc/crontabs/root; chmod +x /etc/crontabs/root
WORKDIR /crontab-ui
LABEL maintainer "@alseambusher"
LABEL description "Crontab-UI docker"
RUN apk --no-cache add \
wget \
curl \
nodejs \
npm \
supervisor
ENV DOCKERVERSION=18.03.1-ce
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz | \
tar zxvf - --strip 1 -C /usr/bin docker/docker
COPY supervisord.conf /etc/supervisord.conf
COPY . /crontab-ui
RUN npm install
ENV HOST 0.0.0.0
ENV PORT 8000
ENV CRON_PATH /etc/crontabs
ENV CRON_IN_DOCKER true
EXPOSE $PORT
CMD ["supervisord", "-c", "/etc/supervisord.conf"]