Copy source into image, and run from there. Move default folder to /crontab-ui and /crontab-ui/crontabs

pull/56/head
Corey Gaspard 2017-07-19 09:20:06 -05:00
parent 39b6b99f4d
commit db78cb56a4
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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