fix: dockerfile

This commit is contained in:
hugeblank 2024-12-03 12:41:57 -08:00
parent 926305669b
commit 4051184fdb
4 changed files with 3 additions and 26 deletions

View file

@ -1,4 +1,4 @@
FROM node:22-alpine AS base
FROM node:23-alpine AS base
FROM base AS deps
WORKDIR /app
@ -14,6 +14,7 @@ RUN npm run build
FROM base AS runner
WORKDIR /app
COPY --from=builder /app/build ./
COPY --from=deps /app/node_modules ./node_modules
ENV PORT=3000
EXPOSE 3000
CMD ["node", "index.js"]

View file

@ -8,4 +8,4 @@ services:
restart: unless-stopped
env_file: ./.env
ports:
- 3000:3000 # host:container
- 5000:3000 # host:container

23
package-lock.json generated
View file

@ -11,7 +11,6 @@
"@sveltejs/adapter-node": "^5.2.9",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/markdown-it": "^14.1.2",
"marked": "^15.0.3",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
@ -1262,22 +1261,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/linkify-it": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
"integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
"license": "MIT"
},
"node_modules/@types/markdown-it": {
"version": "14.1.2",
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",
"integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",
"license": "MIT",
"dependencies": {
"@types/linkify-it": "^5",
"@types/mdurl": "^2"
}
},
"node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
@ -1287,12 +1270,6 @@
"@types/unist": "*"
}
},
"node_modules/@types/mdurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
"integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
"license": "MIT"
},
"node_modules/@types/ms": {
"version": "0.7.34",
"resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz",

View file

@ -31,7 +31,6 @@
"@sveltejs/adapter-node": "^5.2.9",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/markdown-it": "^14.1.2",
"marked": "^15.0.3",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",