-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 733 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (18 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Deploys examples/demo. Built from the repo root so the demo's
# workspace:* dependencies (packages/*) resolve; Bun runs them from src
# via the "bun" export condition, so no package build step is needed.
FROM oven/bun:1
WORKDIR /app
COPY package.json bun.lock tsconfig.json tsconfig.base.json ./
COPY packages/ai/package.json packages/ai/
COPY packages/core/package.json packages/core/
COPY packages/react/package.json packages/react/
COPY packages/server/package.json packages/server/
COPY examples/demo/package.json examples/demo/
RUN bun install --frozen-lockfile
COPY packages ./packages
COPY examples/demo ./examples/demo
ENV NODE_ENV=production
EXPOSE 3000
WORKDIR /app/examples/demo
CMD ["bun", "run", "src/server.ts"]