0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-17 22:12:37 +00:00
alerta_alerta-webui/Dockerfile

16 lines
359 B
Text
Raw Normal View History

2019-02-08 11:29:03 +00:00
# build stage
FROM node:lts-alpine as build-stage
RUN apk add --no-cache git
2019-02-08 11:29:03 +00:00
WORKDIR /app
2020-01-29 12:40:24 +00:00
COPY package*.json ./
2019-02-08 11:29:03 +00:00
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
2019-02-08 11:29:03 +00:00
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]