mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
feat: Improve build system to reduce Docker image to 312 MB
This commit is contained in:
parent
44aaa87f79
commit
ecf1139081
4 changed files with 60 additions and 13 deletions
7
build.ts
7
build.ts
|
|
@ -1,5 +1,10 @@
|
|||
// Delete dist directory
|
||||
import { rm } from "fs/promises";
|
||||
|
||||
await rm("./dist", { recursive: true });
|
||||
|
||||
await Bun.build({
|
||||
entrypoints: ["./index.ts"],
|
||||
entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"],
|
||||
outdir: "./dist",
|
||||
target: "bun",
|
||||
splitting: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue