Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 -g https://git.tum.dk/tum.dk/servera/archive/v0.0.23.tar.gz --unsafe-perm
  13. # node_modules have to be in data to allow plugins to be installable at runtime
  14. #RUN cd /app/code/src && npm install && \
  15. # ln -s /app/data/node_modules /app/code/node_modules
  16. # https://github.com/ether/etherpad-lite/issues/2683
  17. #RUN touch src/.ep_initialized
  18. #COPY settings.json.template /app/code/settings.json.template
  19. #RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
  20. # make these writable (var is used for cache)
  21. # node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
  22. #RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
  23. # ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
  24. # rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
  25. # rm -rf /home/cloudron/.npm && ln -s /tmp/.npm /home/cloudron/.npm && \
  26. # rm -rf /root/.npm && ln -s /tmp/.npm /root/.npm
  27. #COPY index.js /app/code/
  28. COPY start.sh /app/code/
  29. COPY sync.sh /app/code/
  30. RUN chmod +x /app/code/start.sh /app/code/sync.sh
  31. CMD [ "/app/code/start.sh" ]