Start-Command für Production hinzufügen

This commit is contained in:
2026-08-30 09:58:28 +02:00
parent 11465f8395
commit 30d99fc3bc
+18
View File
@@ -0,0 +1,18 @@
FROM node:24-slim AS base
WORKDIR /app
FROM base AS deps
COPY package.json package-lock.json ./
RUN npm ci
FROM base AS build
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM base AS runtime
COPY --from=build /app/.output ./.output
COPY package.json ./
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]