update: deploy

- add deploy dockerfile, tests ok!

Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
pakintada@gmail.com 2026-04-09 11:37:50 +07:00
parent bbb30f7624
commit 21174fc1ad
6 changed files with 44 additions and 1 deletions

18
.dockerignore Normal file
View file

@ -0,0 +1,18 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.editorconfig
.idea
coverage*
.svelte-kit
.storybook
tbm-m2-dev-90d717d5e58a.json
env*

4
.gitignore vendored
View file

@ -24,3 +24,7 @@ vite.config.ts.timestamp-*
*storybook.log
storybook-static
tbm-m2-dev-90d717d5e58a.json
env*

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
# Stage 1: Build
FROM oven/bun:latest AS builder
WORKDIR /app
COPY . .
RUN bun install --frozen-lockfile
RUN bun run build
# Stage 2: Production Runtime
FROM oven/bun:latest
WORKDIR /app
# Copy only necessary files from the builder
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json .
ENV PORT=3167
EXPOSE 3167
USER bun
# Run the application from the build directory
CMD ["bun", "build/index.js"]

BIN
bun.lockb

Binary file not shown.

View file

@ -27,6 +27,7 @@
"@storybook/addon-vitest": "^10.2.0",
"@storybook/sveltekit": "^10.2.0",
"@sveltejs/adapter-auto": "^7.0.0",
"@sveltejs/adapter-node": "^5.5.4",
"@sveltejs/kit": "^2.50.1",
"@sveltejs/vite-plugin-svelte": "^6.2.4",
"@tailwindcss/forms": "^0.5.11",
@ -44,6 +45,7 @@
"prettier-plugin-tailwindcss": "^0.7.2",
"storybook": "^10.2.0",
"svelte": "^5.48.0",
"svelte-adapter-bun": "^1.0.1",
"svelte-check": "^4.3.5",
"svelte-sonner": "^1.0.7",
"tailwind-merge": "^3.4.0",

View file

@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */