Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM alpine:edge
- WORKDIR /crontab-ui
- ENV CRON_PATH /etc/crontabs
- ENV TZ=Europe/Budapest
- ENV NTPSERVER="172.30.30.254"
- ENV HOST 0.0.0.0
- ENV PORT 8000
- ENV CRON_IN_DOCKER true
- ENV ENABLE_AUTOSAVE true
- ENV BASE_URL="/qnap"
- RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root
- RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
- RUN apk update && apk upgrade
- RUN apk add --no-cache \
- bash \
- ca-certificates \
- curl \
- curlftpfs \
- chrony \
- ffmpeg \
- fuse \
- htop \
- lftp \
- mc \
- nodejs \
- npm \
- nano \
- net-tools \
- openssh-client \
- supervisor \
- tzdata \
- procps \
- python3 \
- rsync \
- sshpass \
- sshfs \
- unzip \
- wget \
- && rm -rf /var/cache/apk/*
- RUN echo "server ${NTPSERVER}" > /etc/ntp.conf
- RUN echo "cd /usr/local/bin" > /root/.bashrc
- # customisation
- COPY customisation/index.ejs /crontab-ui/views/index.ejs
- COPY customisation/navbar.ejs /crontab-ui/views/navbar.ejs
- COPY customisation/popup.ejs /crontab-ui/views/popup.ejs
- # custom scripts
- COPY scripts/ /usr/local/bin
- #
- COPY supervisord.conf /etc/supervisord.conf
- COPY . /crontab-ui
- RUN npm install
- EXPOSE $PORT
- CMD ["supervisord", "-c", "/etc/supervisord.conf"]
Advertisement
Add Comment
Please, Sign In to add comment