Dockerfile 311 Bytes
Newer Older
Laura Morel's avatar
Laura Morel committed
1
2
# Stage 1: build 
FROM node:14.13.1 as build
Laura Morel's avatar
Laura Morel committed
3
WORKDIR /app
Laura Morel's avatar
Laura Morel committed
4
COPY package.json /app
Laura Morel's avatar
Laura Morel committed
5
RUN npm install
Laura Morel's avatar
Laura Morel committed
6
COPY . /app/
7
RUN npm run build
Laura Morel's avatar
Laura Morel committed
8
9
10
11
12
13

# Stage 2: serve
FROM nginx:1.17.1
RUN rm -rf /usr/shar/nginx/html/*
COPY --from=build /app/dist/VizFaDa /usr/share/nginx/html
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf