shiftslabs commited on
Commit
f2b0d70
·
verified ·
1 Parent(s): 6c72ba9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,12 +1,15 @@
1
  FROM oven/bun:latest
2
  WORKDIR /app
3
 
4
- # We skip better-sqlite3 because Bun has it built-in!
5
- RUN bun add express cors dotenv vite @office-ai/platform
 
 
 
 
6
 
7
  COPY . .
8
 
9
- # Run build scripts
10
  RUN bunx vite build --config vite.renderer.config.ts || echo "Skipping renderer"
11
  RUN node scripts/build-server.mjs
12
 
 
1
  FROM oven/bun:latest
2
  WORKDIR /app
3
 
4
+ # Install Python and C++ build tools required by better-sqlite3
5
+ USER root
6
+ RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Now the install will work
9
+ RUN bun add express cors dotenv better-sqlite3 vite @office-ai/platform
10
 
11
  COPY . .
12
 
 
13
  RUN bunx vite build --config vite.renderer.config.ts || echo "Skipping renderer"
14
  RUN node scripts/build-server.mjs
15