fix: Zeitzone Europe/Berlin im Dockerfile fest verankern (DST-sicher)
This commit is contained in:
@@ -15,6 +15,10 @@ RUN npm run build
|
|||||||
# ── Stage 2: Express liefert API + React in einem Container ──────────────────
|
# ── Stage 2: Express liefert API + React in einem Container ──────────────────
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
RUN apk add --no-cache tzdata python3 make g++
|
RUN apk add --no-cache tzdata python3 make g++
|
||||||
|
# Zeitzone fest auf Europe/Berlin setzen, damit Server und Browser (DE) immer
|
||||||
|
# dieselbe lokale Zeit berechnen – inkl. automatischer Sommer-/Winterzeit-Umstellung
|
||||||
|
ENV TZ=Europe/Berlin
|
||||||
|
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY backend/package.json ./
|
COPY backend/package.json ./
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|||||||
Reference in New Issue
Block a user