1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
FROM node:8.11 WORKDIR /usr/src/app ARG NODE_ENV ENV NODE_ENV $NODE_ENV COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app # replace this with your application's default port EXPOSE 8888 CMD [ "npm", "start" ]