Skip to content
Snippets Groups Projects
Forked from GéoContrib / Géocontrib Frontend
2350 commits behind the upstream repository.
Dockerfile 319 B
FROM node:12.13-slim AS builder

WORKDIR /app
RUN npm install -g npm@latest

COPY package*.json ./
RUN npm install

#COPY dist dist
COPY . .
RUN npm run build


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;"]