build: change Dockerfile base to Debian

This commit is contained in:
DanielS
2026-07-06 00:17:19 +02:00
parent dab20ae5c1
commit 23a165a6e5

View File

@@ -1,5 +1,5 @@
# Build-Phase # Build-Phase
FROM node:20-alpine AS builder FROM node:20-slim AS builder
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps
@@ -7,7 +7,7 @@ COPY . .
RUN npm run build RUN npm run build
# Production-Phase # Production-Phase
FROM nginx:alpine FROM nginx:1.25
# Nginx konfigurieren für non-root Port 8080 # Nginx konfigurieren für non-root Port 8080
RUN sed -i 's/listen\( \)*80;/listen 8080;/g' /etc/nginx/conf.d/default.conf && \ RUN sed -i 's/listen\( \)*80;/listen 8080;/g' /etc/nginx/conf.d/default.conf && \