8 lines
227 B
Docker
8 lines
227 B
Docker
|
FROM node:11
|
||
|
ENV NODE_ENV production
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||
|
RUN npm install --production --silent && mv node_modules ../
|
||
|
COPY . .
|
||
|
EXPOSE 3000
|
||
|
CMD npm start
|