From 4f7479e0405734ad7733f77bb674398929d97024 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 1 Jan 2026 19:48:41 -0800 Subject: How did this change anything??? --- Dockerfile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 7174a9c..da1f658 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,24 @@ -FROM node:24-alpine as mmt +FROM node:24-slim AS build ENV VITE_HCAPTCHA_KEY=36511980-ea6f-4a01-b9bc-5270d67c0702 +WORKDIR /app + COPY package*.json ./ -RUN npm install -COPY --chown=node:node . . +RUN npm ci + +COPY . . RUN npm run build +RUN npm prune --production + +FROM node:24 AS mmt + +ENV NODE_ENV=production -EXPOSE 3000 -CMD [ "node", "build/index.js" ] +WORKDIR /app +COPY --from=build /app/build ./build +COPY --from=build /app/package.json ./package.json +COPY --from=build /app/node_modules ./node_modules +RUN ulimit -c unlimited +ENTRYPOINT ["node", "build"] -- cgit v1.2.3-70-g09d2