2017-06-26 15:32:54 +03:00
|
|
|
FROM node:6.11-alpine
|
2017-06-13 17:59:24 +03:00
|
|
|
|
|
|
|
# Create app directory
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# Install app dependencies
|
|
|
|
COPY package.json /usr/src/app/
|
|
|
|
RUN npm install yarn -g
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# Bundle app source
|
|
|
|
COPY . /usr/src/app
|
|
|
|
|
2017-06-26 15:32:54 +03:00
|
|
|
CMD [ "npm", "start" ]
|