2018-08-08 07:28:55 +00:00
|
|
|
FROM node:8.11-alpine
|
2017-06-26 15:36:29 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
ARG NODE_ENV
|
|
|
|
ENV NODE_ENV $NODE_ENV
|
2018-08-08 07:28:55 +00:00
|
|
|
|
2017-06-26 15:36:29 +00:00
|
|
|
COPY package.json /usr/src/app/
|
2018-08-08 07:28:55 +00:00
|
|
|
RUN npm install
|
2017-06-26 15:36:29 +00:00
|
|
|
|
2018-08-08 07:28:55 +00:00
|
|
|
COPY . /usr/src/app
|
2017-06-26 15:36:29 +00:00
|
|
|
|
|
|
|
# replace this with your application's default port
|
|
|
|
EXPOSE 8888
|
2018-08-08 07:28:55 +00:00
|
|
|
CMD [ "npm", "start" ]
|