2016-11-23 01:03:33 +02:00
|
|
|
FROM mhart/alpine-node:7
|
|
|
|
|
2016-11-25 03:37:38 +02:00
|
|
|
RUN npm install -g yarn
|
|
|
|
|
2016-11-23 01:03:33 +02:00
|
|
|
WORKDIR /src
|
2016-11-25 03:37:38 +02:00
|
|
|
COPY package.json package.json
|
|
|
|
COPY yarn.lock yarn.lock
|
2016-11-23 01:03:33 +02:00
|
|
|
|
|
|
|
RUN yarn install --production --pure-lockfile --prefer-offline
|
|
|
|
|
2016-11-25 03:37:38 +02:00
|
|
|
COPY . .
|
|
|
|
|
2016-11-23 01:03:33 +02:00
|
|
|
EXPOSE 8000
|
2016-11-25 03:37:38 +02:00
|
|
|
CMD ["node", "scripts/start.js"]
|