Dockerfile

This commit is contained in:
titver968
2025-04-10 15:44:38 +02:00
parent f4569072ed
commit aa598e7943

View File

@@ -1,5 +1,5 @@
# --- Build stage ---
FROM node:22 AS build
FROM node:22-bullseye AS build
ENV NODE_ENV=production
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
ENV PNPM_HOME="/usr/local/lib/node_modules/pnpm"
@@ -23,8 +23,12 @@ COPY . ./
RUN pnpm run build
# --- Production stage ---
FROM node:22-alpine3.20
COPY --from=build /usr/src/app .
FROM node:22-bullseye AS production
WORKDIR /usr/src/app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --production
COPY --from=build /usr/src/appi/dist ./dist
ENV HOST=0.0.0.0
EXPOSE 3000