# base image
FROM node:12.2.0-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install and cache app dependencies
COPY . /app/
RUN npm install --silent
EXPOSE 4868
# start app
ENTRYPOINT ["npm", "start"]
-
narendrachary93 authored