Dockerfile

This commit is contained in:
titver968
2025-04-17 16:12:45 +02:00
parent b3c7113ce4
commit bbd617f380
5 changed files with 166 additions and 117 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# --- 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 . ./
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"]