Node.Dockerfile 231 Bytes
Newer Older
Bob Van Landuyt's avatar
Bob Van Landuyt committed
1
FROM node:8.11
2 3 4 5 6

WORKDIR /usr/src/app

ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
Bob Van Landuyt's avatar
Bob Van Landuyt committed
7

8
COPY package.json /usr/src/app/
Bob Van Landuyt's avatar
Bob Van Landuyt committed
9
RUN npm install
10

Bob Van Landuyt's avatar
Bob Van Landuyt committed
11
COPY . /usr/src/app
12 13 14

# replace this with your application's default port
EXPOSE 8888
Bob Van Landuyt's avatar
Bob Van Landuyt committed
15
CMD [ "npm", "start" ]