Guest User

Untitled

a guest
Jun 18th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. FROM alpine:edge
  2.  
  3.  
  4. WORKDIR /crontab-ui
  5. ENV CRON_PATH /etc/crontabs
  6. ENV TZ=Europe/Budapest
  7. ENV NTPSERVER="172.30.30.254"
  8. ENV HOST 0.0.0.0
  9. ENV PORT 8000
  10. ENV CRON_IN_DOCKER true
  11. ENV ENABLE_AUTOSAVE true
  12. ENV BASE_URL="/qnap"
  13.  
  14. RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root
  15.  
  16. RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
  17. RUN apk update && apk upgrade
  18.  
  19. RUN apk add --no-cache \
  20. bash \
  21. ca-certificates \
  22. curl \
  23. curlftpfs \
  24. chrony \
  25. ffmpeg \
  26. fuse \
  27. htop \
  28. lftp \
  29. mc \
  30. nodejs \
  31. npm \
  32. nano \
  33. net-tools \
  34. openssh-client \
  35. supervisor \
  36. tzdata \
  37. procps \
  38. python3 \
  39. rsync \
  40. sshpass \
  41. sshfs \
  42. unzip \
  43. wget \
  44. && rm -rf /var/cache/apk/*
  45.  
  46.  
  47. RUN echo "server ${NTPSERVER}" > /etc/ntp.conf
  48. RUN echo "cd /usr/local/bin" > /root/.bashrc
  49.  
  50. # customisation
  51. COPY customisation/index.ejs /crontab-ui/views/index.ejs
  52. COPY customisation/navbar.ejs /crontab-ui/views/navbar.ejs
  53. COPY customisation/popup.ejs /crontab-ui/views/popup.ejs
  54. # custom scripts
  55. COPY scripts/ /usr/local/bin
  56.  
  57. #
  58.  
  59. COPY supervisord.conf /etc/supervisord.conf
  60. COPY . /crontab-ui
  61. RUN npm install
  62.  
  63. EXPOSE $PORT
  64.  
  65. CMD ["supervisord", "-c", "/etc/supervisord.conf"]
  66.  
Advertisement
Add Comment
Please, Sign In to add comment