Files
tatort/Dockerfile.dev
Chi Cong Tran b44bac760d
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
testing PV: remove DB init run during build
2025-10-13 13:47:46 +02:00

19 lines
495 B
Docker

# --- Build stage ---
FROM node:24-alpine 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 npm run build
# --- Production stage ---
FROM node:24-alpine
COPY --from=build /app .
ENV HOST=0.0.0.0
EXPOSE 3000
CMD ["sh", "-c", "npm run init-db"]
CMD ["sh", "-c", "ORIGIN=https://tatort-dev.innovation-hub-niedersachsen.de node build/index.js"]