Dockerfile 973 B

12345678910111213141516171819202122232425
  1. FROM cloudron/base:0.9.0
  2. MAINTAINER Johannes Zellner <johannes@cloudron.io>
  3. ENV PATH /usr/local/node-4.2.6/bin:$PATH
  4. RUN mkdir -p /app/code
  5. WORKDIR /app/code
  6. RUN curl -L https://github.com/NodeBB/NodeBB/archive/v1.2.0.tar.gz | tar -xz --strip-components 1 -f -
  7. ADD config.json.template /app/code
  8. RUN npm install --production
  9. RUN npm install nodebb-plugin-emailer-local-bobo
  10. RUN mv /app/code/node_modules /app/code/node_modules_copy
  11. RUN ln -s /run/nodebb/node_modules /app/code/node_modules
  12. # these links will become valid after setup is run
  13. RUN mv /app/code/public /app/code/public_template && ln -sf /run/nodebb/public /app/code/public
  14. RUN rm -rf /app/code/logs && ln -sf /run/nodebb/logs /app/code/logs
  15. RUN ln -sF /run/nodebb/config.json /app/code/config.json
  16. # required for npm install to work at runtime (for nodebb plugins)
  17. RUN rm -rf /home/cloudron/.npm && ln -sf /run/nodebb/npm /home/cloudron/.npm
  18. ADD start.sh /app/code/start.sh
  19. CMD [ "/app/code/start.sh" ]