mirror of
https://github.com/KevinMidboe/hivemonitor.git
synced 2025-10-29 09:30:25 +00:00
20 lines
280 B
Docker
20 lines
280 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
|