Dockerfile

This commit is contained in:
titver968
2025-04-10 15:15:46 +02:00
parent 34b35f671d
commit f4569072ed

View File

@@ -1,5 +1,5 @@
# --- Build stage --- # --- Build stage ---
FROM node:19 AS build FROM node:22 AS build
ENV NODE_ENV=production ENV NODE_ENV=production
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm" ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm"
@@ -18,12 +18,12 @@ COPY package.json pnpm-lock.yaml ./
RUN pnpm install RUN pnpm install
# Kopiere den Rest der Anwendung in das Arbeitsverzeichnis # Kopiere den Rest der Anwendung in das Arbeitsverzeichnis
COPY . . COPY . ./
RUN pnpm run build RUN pnpm run build
# --- Production stage --- # --- Production stage ---
FROM node:19-alpine3.16 FROM node:22-alpine3.20
COPY --from=build /usr/src/app . COPY --from=build /usr/src/app .
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
EXPOSE 3000 EXPOSE 3000