Files
hivemonitor/Dockerfile
2023-07-29 14:48:32 +02:00

23 lines
405 B
Docker

FROM node:current-alpine3.17 as builder
WORKDIR /app
COPY package*.json .
COPY *config* .
COPY .env .
COPY src/ src
COPY static/ static
RUN npm install
RUN npm run build
FROM nginx:alpine
WORKDIR /app
COPY --from=builder /app/build .
COPY ./nginx.conf /etc/nginx/nginx.conf
LABEL org.opencontainers.image.source=https://github.com/kevinmidboe/hivemonitor
LABEL org.opencontainers.image.license=MIT