0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-17 05:52:37 +00:00
alerta_alerta-webui/Dockerfile
2020-01-29 14:36:34 +01:00

15 lines
359 B
Docker

# build stage
FROM node:lts-alpine as build-stage
RUN apk add --no-cache git
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]