Files
NodeBB/Dockerfile

20 lines
493 B
Docker
Raw Normal View History

# The base image is the latest 8.x node (LTS)
2019-10-01 16:45:25 +00:00
FROM node:8.16.1@sha256:a07ce30ff4e6ae7a6f2c2c1abd7b7b293aaee89510569932a68d00b897cbe055
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
2017-11-21 14:43:56 -05:00
COPY install/package.json /usr/src/app/package.json
RUN npm install && npm cache clean --force
COPY . /usr/src/app
2015-05-21 01:10:56 +02:00
ENV NODE_ENV=production \
daemon=false \
silent=false
CMD ./nodebb start
# the default port for NodeBB is exposed outside the container
EXPOSE 4567