Dockerfile 357 Bytes
Newer Older
1
# pull official base image of node
Florent Chehab's avatar
Florent Chehab committed
2
FROM node:10.15.1-alpine
3
ENV NODE_ENV = "DEV"
4

5
6
7
8
# we cache de dependencies in one location, so that we can reuse them easily
WORKDIR /usr/src/deps

COPY ./package.json ./package.json
9
10
COPY ./yarn.lock ./yarn.lock
RUN yarn install --network-timeout 1000000
11
12

# And prepare a clean workdir for the project
Florent Chehab's avatar
Florent Chehab committed
13
WORKDIR /usr/src/app