Weather Station / ECOWITT / DNT
1FROM node:lts-trixie-slim
2
3WORKDIR /app
4
5## System deps (minimal)
6RUN apt-get update && apt-get install -y --no-install-recommends \
7 ca-certificates \
8 libstdc++6 \
9 && rm -rf /var/lib/apt/lists/*
10
11# Copy package files and install dependencies
12COPY package.json package-lock.json* ./
13RUN npm ci
14
15# Copy source code
16COPY . .
17
18# Build the application
19RUN npm run build --webpack
20
21# Set environment variables
22#EXPOSE 3010
23ENV PORT=3010
24ENV NODE_ENV=production
25
26# Start the server
27CMD ["npm", "run", "start"]