Compare commits
12 Commits
f117_remai
...
9bb4d23a2d
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bb4d23a2d | |||
|
|
e2cd6945f5 | ||
|
|
ba21f797de | ||
|
|
646ff668f7 | ||
| 8b6d35b66f | |||
| e0d6e3cc62 | |||
|
|
2d9acb402d | ||
|
|
a71807c63a | ||
| 78bf7c7dbc | |||
| aeccb684b4 | |||
| 425b1ee8fa | |||
| 6b1a49583e |
@@ -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"]
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user