refactor(deploy): Image-Versionen fest in Dockerfiles verankern

ARG-Variablen durch feste Werte in FROM ersetzt — nicht per .env
ueberschreibbar. PYTHON_VERSION, NODE_VERSION, NPM_VERSION,
NGINX_VERSION aus .env, env-sample und Compose-Dateien entfernt.
Deployment-Anleitung erstellt und entsprechend angepasst.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
gg committed 2026-09-13 19:12:14 +02:00
1 parent 3b3e2893e5
commit 40ad0e1ba9
6 files changed
+429 -32

No files matched your search

+2 -6
View File
@@ -1,10 +1,6 @@
ARG NGINX_VERSION
ARG NODE_VERSION
ARG NPM_VERSION
# ── Stage: frontend — baut das TypeScript-JS-Bundle ──────────────
# Node.js, npm und node_modules landen NICHT im Prod-Image.
FROM node:${NODE_VERSION}-bookworm-slim AS frontend
FROM node:lts-bookworm-slim AS frontend
# Zielverzeichnis fuer rollup-Output erstellen (absoluter Pfad wie in rollup.config.mjs)
RUN mkdir -p /usr/opt/pythonapp/NGINX_Server/html/static
WORKDIR /usr/opt/pythonapp/Client
@@ -19,7 +15,7 @@ COPY App_Server/root/config.ini /usr/opt/pythonapp/App_Server/root/config.ini
RUN npm run build
# ── Stage: nginx ────────────────────────────────────────────────
FROM nginx:${NGINX_VERSION}
FROM nginx:mainline-alpine
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN mkdir -p /etc/certs /etc/nginx/templates
COPY NGINX_Server/10-select-ssl.sh /docker-entrypoint.d/10-select-ssl.sh