diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 19:48:41 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 19:49:36 -0800 |
| commit | 4f7479e0405734ad7733f77bb674398929d97024 (patch) | |
| tree | 9014e971e30cb2af154eeea398e5a0f7d41dc2fe | |
| parent | 34aee4d897313cb4e8667b5d8a6c0a96d98db4fc (diff) | |
| download | mistymountainstherapy-4f7479e0405734ad7733f77bb674398929d97024.tar.gz mistymountainstherapy-4f7479e0405734ad7733f77bb674398929d97024.zip | |
How did this change anything???
| -rw-r--r-- | .dockerignore | 1 | ||||
| -rw-r--r-- | Dockerfile | 22 | ||||
| -rw-r--r-- | svelte.config.js | 3 |
3 files changed, 18 insertions, 8 deletions
diff --git a/.dockerignore b/.dockerignore index e5531f0..a6dde25 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,3 +4,4 @@ Dockerfile .env .git build/ +.svelte-kit @@ -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"] diff --git a/svelte.config.js b/svelte.config.js index f973307..8e82a61 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,9 +8,6 @@ const config = { kit: { adapter: adapter(), - paths: { - base: '' - }, csp: { mode: 'nonce', directives: { |
