step: Working MQTT websocket connection, docker deploy script

This commit is contained in:
2026-05-10 00:10:09 +02:00
parent 9900d48622
commit e1a32ecd01
6 changed files with 877 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Serve stage
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]