Dockerfile 1.5 KB

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