Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. FROM docker.iske.dk/base
  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. #WORKDIR /app
  10. #RUN npm install https://git.tum.dk/tum.dk/aserver/archive/v0.0.14.tar.gz
  11. RUN ln -s /usr/local/node-8.12.0/bin/node /usr/bin/node
  12. RUN npm install -g https://git.tum.dk/tum.dk/servera/archive/v0.0.12.tar.gz --unsafe-perm
  13. #RUN curl -L https://git.tum.dk/tum.dk/aserver/archive/v0.0.1.tar.gz | tar -vxz --strip-components 1 -f -
  14. #RUN npm install
  15. # node_modules have to be in data to allow plugins to be installable at runtime
  16. #RUN cd /app/code/src && npm install && \
  17. # ln -s /app/data/node_modules /app/code/node_modules
  18. # https://github.com/ether/etherpad-lite/issues/2683
  19. #RUN touch src/.ep_initialized
  20. #COPY settings.json.template /app/code/settings.json.template
  21. #RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
  22. # make these writable (var is used for cache)
  23. # node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
  24. #RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
  25. # ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
  26. # rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
  27. # rm -rf /home/cloudron/.npm && ln -s /tmp/.npm /home/cloudron/.npm && \
  28. # rm -rf /root/.npm && ln -s /tmp/.npm /root/.npm
  29. COPY index.js /app/code/
  30. COPY start.sh /app/code/
  31. CMD [ "/app/code/start.sh" ]