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