From 30d99fc3bc7cea60f0f7c0159dcab97184a464bd Mon Sep 17 00:00:00 2001 From: Mathias Hurler Date: Sun, 30 Aug 2026 09:58:28 +0200 Subject: [PATCH] =?UTF-8?q?Start-Command=20f=C3=BCr=20Production=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1741aaa --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file