20 lines
290 B
Docker
20 lines
290 B
Docker
|
FROM node:latest
|
||
|
|
||
|
# set working directory
|
||
|
WORKDIR /app
|
||
|
|
||
|
# add `/app/node_modules/.bin` to $PATH
|
||
|
ENV PATH /app/node_modules/.bin:$PATH
|
||
|
|
||
|
# install app dependencies
|
||
|
COPY package.json ./
|
||
|
COPY package-lock.json ./
|
||
|
|
||
|
RUN npm install --silent
|
||
|
|
||
|
# add app
|
||
|
COPY . ./
|
||
|
|
||
|
# start app
|
||
|
CMD ["npm", "start"]
|