From bf02ea81bba63e689ff2c04ba7ae34b043abec2b Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 8 Feb 2026 12:34:00 +0000 Subject: [PATCH] Create website.Dockerfile --- website.Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 website.Dockerfile diff --git a/website.Dockerfile b/website.Dockerfile new file mode 100644 index 0000000..1e2bf8f --- /dev/null +++ b/website.Dockerfile @@ -0,0 +1,20 @@ +FROM node:24-alpine AS builder +WORKDIR /app +COPY package*.json ./ + +RUN npm i -g pnpm +RUN pnpm ci +COPY . . + +RUN pmpm build +RUN pnpm prune --production + +FROM node:24-alpine +WORKDIR /app + +COPY --from=builder /app/build build/ +COPY --from=builder /app/node_modules node_modules/ +COPY package.json . +EXPOSE 3000 +ENV NODE_ENV=production +CMD [ "node", "build" ]