You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
336 B
Docker
24 lines
336 B
Docker
FROM node:lts
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
ARG NODE_ENV
|
|
ENV NODE_ENV $NODE_ENV
|
|
|
|
COPY install/package.json /usr/src/app/package.json
|
|
|
|
RUN npm install --only=prod && \
|
|
npm cache clean --force
|
|
|
|
COPY . /usr/src/app
|
|
|
|
ENV NODE_ENV=production \
|
|
daemon=false \
|
|
silent=false
|
|
|
|
EXPOSE 4567
|
|
|
|
CMD ./nodebb start
|
|
|