Dockerfile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. FROM docker.iske.dk/base-image-alt: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 apt-get install -y tor torsocks
  8. RUN npm install -g hypercored
  9. RUN npm install -g dat
  10. #RUN npm install -g pm2
  11. RUN ln -s /usr/local/node-10.15.1/bin/node /usr/bin/node
  12. #RUN npm install -g openpgp
  13. RUN npm install pm2 -g
  14. RUN npm install -g https://git.tum.dk/tum.dk/servera/archive/v0.0.29.tar.gz --unsafe-perm
  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. ADD tor.curl /bin/tor.curl
  31. ADD torrc /app/code/torrc
  32. COPY start.sh sync.sh dsync.sh /app/code/
  33. RUN chmod +x /app/code/start.sh /app/code/sync.sh /app/code/dsync.sh
  34. CMD [ "/app/code/start.sh" ]