From 25374eee70c3dbbe42d50a77648b7ac813013a7c Mon Sep 17 00:00:00 2001 From: passthem Date: Fri, 7 Nov 2025 00:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 23 +++++++++++++++++++++++ Dockerfile | 11 +++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3b462cb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,23 @@ +node_modules + +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build + +# OS +.DS_Store +Thumbs.db + +# Env +.env +.env.* +!.env.example +!.env.test + +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70cb88a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM oven/bun:1 AS base +WORKDIR /app + +FROM base AS build +COPY . . +RUN bun install --frozen-lockfile && bun run build + +FROM base AS product +COPY --from=build /app/build /app +ENTRYPOINT [ "bun", "run", "index.js" ] +