Skip to content
Snippets Groups Projects
Dockerfile 319 B
Newer Older
Sébastien DA ROCHA's avatar
Sébastien DA ROCHA committed
FROM node:12.13-slim AS builder

WORKDIR /app
RUN npm install -g npm@latest

COPY package*.json ./
RUN npm install

Timothee P's avatar
Timothee P committed
#COPY dist dist
COPY . .
RUN npm run build
Sébastien DA ROCHA's avatar
Sébastien DA ROCHA committed


FROM nginx

COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf 

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]