Dockerfile 1.5 KB

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