Merge pull request 'main' (#42) from main into development
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit

Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
2025-12-09 09:34:26 +01:00
3 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
# --- 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
@@ -11,7 +9,13 @@ RUN npm run build
# --- Production stage ---
FROM node:22-alpine3.20
COPY --from=build /app .
WORKDIR /app
ENV NODE_ENV=production
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
COPY --from=build /app/build ./build
COPY --from=build /app/package*.json ./
COPY --from=build /app/config.json ./config.json
RUN npm ci --omit=dev
ENV HOST=0.0.0.0
EXPOSE 3000
CMD ["sh", "-c", "ORIGIN=https://tatort.innovation-hub-niedersachsen.de node build/index.js"]
CMD ["node", "build/index.js"]

View File

@@ -1,3 +1,3 @@
import { readFileSync } from 'fs';
export default JSON.parse(readFileSync('./config_prod.json').toString());
export default JSON.parse(readFileSync('./config.json').toString());