WetterHub/Dockerfile
2026-08-03 14:14:20 +02:00

14 lines
310 B
Docker

# Stage 1: Build
FROM node:26-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build -- --configuration production
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/dist/WetterHub/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80