12345678910111213141516171819 |
- FROM cloudron/base:0.8.1
- MAINTAINER Johannes Zellner <johannes@cloudron.io>
- ENV PATH /usr/local/node-4.2.1/bin:$PATH
- RUN mkdir -p /app/code
- WORKDIR /app/code
- RUN curl -L https://github.com/NodeBB/NodeBB/archive/v1.1.0.tar.gz | tar -xz --strip-components 1 -f -
- ADD config.json.template /app/code
- RUN npm install --production
- # these links will become valid after setup is run
- RUN mv /app/code/public /app/code/public_template && ln -sf /run/nodebb/public /app/code/public
- RUN rm -rf /app/code/logs && ln -sf /run/nodebb/logs /app/code/logs
- RUN ln -sF /run/nodebb/config.json /app/code/config.json
- ADD start.sh /app/code/start.sh
- CMD [ "/app/code/start.sh" ]
|