Dockerfile 1.4 KB

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