Dockerfile end config.json for prod and dev

This commit is contained in:
titver968
2025-06-25 12:26:18 +02:00
parent 2278b18f02
commit a71807c63a
5 changed files with 56 additions and 3 deletions

18
Dockerfile.prod Normal file
View File

@@ -0,0 +1,18 @@
# --- Build stage ---
FROM node:22 AS build
ENV NODE_ENV=production
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . ./
COPY config.json_prod ./config.json
RUN npm run build
# --- Production stage ---
FROM node:22-alpine3.20
COPY --from=build /app .
ENV HOST=0.0.0.0
EXPOSE 3000
CMD ["sh", "-c", "ORIGIN=https://tatort.innovation-hub-niedersachsen.de node build/index.js"]