mirror of
https://github.com/KevinMidboe/hivemonitor.git
synced 2025-10-28 17:10:26 +00:00
* adds a bunch of ui components with mock data * build docker image with yarn.lock & yarn instead of npm * easier to add topics, build options smarter from ENV vars * fallback to index.html on all requests for SPA * updates w/ black/white support, better mobile styling * adds test components to home & dashboard pages * adds chart.js dependency * mqtt payload examples * lint * drone ci config * eslint fixes
25 lines
443 B
Docker
25 lines
443 B
Docker
FROM node:current-alpine3.17 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json .
|
|
COPY *config* .
|
|
COPY yarn.lock .
|
|
COPY src/ src
|
|
COPY static/ static
|
|
|
|
ARG PUBLIC_MQTT_BROKER_WS_URL
|
|
|
|
RUN yarn install
|
|
RUN yarn 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
|