diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 18:32:49 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-02-07 14:24:53 -0800 |
| commit | d086e9e753da10269b856aea76f47ba32a7c44e0 (patch) | |
| tree | 64e40df1e4d25d91c1169cd1e21c4ee34a6a1b3d /Dockerfile | |
| parent | 0248a3899ed910f005dccaeefc1d9dcb893e8154 (diff) | |
| download | mistymountainstherapy-main.tar.gz mistymountainstherapy-main.zip | |
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -1,12 +1,24 @@ -FROM node:18-alpine +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"] |
