Files
tatort/Dockerfile.dev
Jared 962dc35324
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
next try
2025-07-24 15:26:23 +02:00

19 lines
538 B
Docker

# --- Build stage ---
FROM node:22 AS build
ENV NODE_ENV=development
ENV ORIGIN=https://tatort-dev.innovation-hub-niedersachsen.de
WORKDIR /app
COPY package*.json ./
RUN npm i --unsafe-perm
COPY . ./
COPY config_dev.json ./config.json
RUN rm -rf node_modules package-lock.json \
&& npm install --unsafe-perm \
&& 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-dev.innovation-hub-niedersachsen.de node build/index.js"]