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:20:06 +00:00
|
|
|
|
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 \
|
2017-07-10 04:26:17 +00:00
|
|
|
curl \
|
2017-07-19 14:20:06 +00:00
|
|
|
nodejs \
|
2019-08-13 23:31:58 +00:00
|
|
|
npm \
|
2021-05-20 18:22:59 +00:00
|
|
|
supervisor \
|
|
|
|
tzdata
|
2017-07-10 04:26:17 +00:00
|
|
|
|
2017-07-19 14:20:06 +00:00
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
COPY . /crontab-ui
|
2017-06-02 21:34:08 +00:00
|
|
|
|
2017-07-19 14:20:06 +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
|
|
|
|
|
2017-07-10 04:26:17 +00:00
|
|
|
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
|