diff --git a/Dockerfile b/Dockerfile index 0a8f85e..49f6354 100644 --- a/Dockerfile +++ b/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 diff --git a/supervisord.conf b/supervisord.conf index ad6adc4..9612d17 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -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 \ No newline at end of file