Dockerfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. FROM docker.iske.dk/base-image:0.0.3
  2. RUN mkdir -p /run/root && rm -rf /root && ln -sf /run/root /root
  3. RUN mkdir -p /app/code
  4. WORKDIR /app/code
  5. #RUN ln /
  6. RUN apt-get update -y
  7. RUN npm install -g hypercored
  8. RUN npm install -g dat
  9. #RUN npm install -g pm2
  10. RUN ln -s /usr/local/node-10.15.1/bin/node /usr/bin/node
  11. #RUN npm install -g openpgp
  12. RUN npm install pm2 -g
  13. RUN npm install -g https://git.tum.dk/tum.dk/servera/archive/v0.0.27.tar.gz --unsafe-perm
  14. # node_modules have to be in data to allow plugins to be installable at runtime
  15. #RUN cd /app/code/src && npm install && \
  16. # ln -s /app/data/node_modules /app/code/node_modules
  17. # https://github.com/ether/etherpad-lite/issues/2683
  18. #RUN touch src/.ep_initialized
  19. #COPY settings.json.template /app/code/settings.json.template
  20. #RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
  21. # make these writable (var is used for cache)
  22. # node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
  23. #RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
  24. # ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
  25. # rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
  26. # rm -rf /home/cloudron/.npm && ln -s /tmp/.npm /home/cloudron/.npm && \
  27. # rm -rf /root/.npm && ln -s /tmp/.npm /root/.npm
  28. #COPY index.js /app/code/
  29. COPY start.sh sync.sh dsync.sh /app/code/
  30. RUN chmod +x /app/code/start.sh /app/code/sync.sh /app/code/dsync.sh
  31. CMD [ "/app/code/start.sh" ]