Dockerfile 341 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
9
10
11
12
# we cache de dependencies in one location, so that we can reuse them easily
WORKDIR /usr/src/deps

COPY ./package.json ./package.json
COPY ./package-lock.json ./package-lock.json
RUN npm ci

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