Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930
  1. FROM docker.iske.dk/base-image:0.0.1
  2. RUN mkdir -p /app/code
  3. WORKDIR /app/code
  4. RUN apt-get update -y && apt-get install -y abiword tidy && rm -r /var/cache/apt /var/lib/apt/lists
  5. RUN curl -L https://github.com/ether/etherpad-lite/tarball/1.7.0 | tar -xz --strip-components 1 -f -
  6. # node_modules have to be in data to allow plugins to be installable at runtime
  7. RUN cd /app/code/src && npm install && \
  8. ln -s /app/data/node_modules /app/code/node_modules
  9. # https://github.com/ether/etherpad-lite/issues/2683
  10. RUN touch src/.ep_initialized
  11. COPY settings.json.template /app/code/settings.json.template
  12. RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
  13. # make these writable (var is used for cache)
  14. # node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
  15. RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
  16. ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
  17. rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
  18. rm -rf /home/cloudron/.npm && ln -s /run/etherpad-lite/npm /home/cloudron/.npm && \
  19. rm -rf /root/.npm && ln -s /run/etherpad-lite/npm /root/.npm
  20. COPY start.sh /app/code/
  21. CMD [ "/app/code/start.sh" ]