Copy source into image, and run from there. Move default folder to /crontab-ui and /crontab-ui/crontabs
parent
39b6b99f4d
commit
db78cb56a4
11
Dockerfile
11
Dockerfile
|
@ -1,24 +1,27 @@
|
|||
# docker run -d -p 8000:8000 alseambusher/crontab-ui
|
||||
FROM alpine:3.5
|
||||
|
||||
RUN mkdir /crontab-ui
|
||||
|
||||
LABEL maintainer "@alseambusher"
|
||||
LABEL description "Crontab-UI docker"
|
||||
|
||||
RUN apk --no-cache add \
|
||||
nodejs \
|
||||
wget \
|
||||
curl \
|
||||
nodejs \
|
||||
supervisor
|
||||
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
COPY . /crontab-ui
|
||||
|
||||
RUN npm install -g crontab-ui
|
||||
RUN npm install
|
||||
|
||||
ENV HOST 0.0.0.0
|
||||
|
||||
ENV PORT 8000
|
||||
|
||||
ENV CRON_PATH /tmp
|
||||
ENV CRON_PATH /crontab-ui/crontabs/
|
||||
ENV CRON_IN_DOCKER true
|
||||
|
||||
EXPOSE $PORT
|
||||
|
|
|
@ -7,6 +7,6 @@ stderr_logfile = /var/log/crontab-stderr.log
|
|||
stdout_logfile = /var/log/crontab-stdout.log
|
||||
|
||||
[program:crontabui]
|
||||
command=crontab-ui
|
||||
command=node /crontab-ui/app.js
|
||||
stderr_logfile = /var/log/crontabui-stderr.log
|
||||
stdout_logfile = /var/log/crontabui-stdout.log
|
Loading…
Reference in New Issue