crontab-ui/Dockerfile

35 lines
596 B
Docker
Raw Permalink Normal View History

2017-06-02 21:34:08 +00:00
# docker run -d -p 8000:8000 alseambusher/crontab-ui
2022-04-04 00:44:15 +00:00
FROM alpine:3.15.3
2017-06-02 21:34:08 +00:00
2020-06-08 17:04:42 +00:00
ENV CRON_PATH /etc/crontabs
RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root
2017-07-19 14:21:13 +00:00
WORKDIR /crontab-ui
2017-06-02 21:34:08 +00:00
LABEL maintainer "@alseambusher"
LABEL description "Crontab-UI docker"
RUN apk --no-cache add \
wget \
curl \
nodejs \
npm \
supervisor \
tzdata
COPY supervisord.conf /etc/supervisord.conf
COPY . /crontab-ui
2017-06-02 21:34:08 +00:00
RUN npm install
2017-06-02 21:34:08 +00:00
ENV HOST 0.0.0.0
ENV PORT 8000
2017-07-19 14:16:07 +00:00
ENV CRON_IN_DOCKER true
2017-06-02 21:34:08 +00:00
EXPOSE $PORT
CMD ["supervisord", "-c", "/etc/supervisord.conf"]