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" ] +