File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM oven/bun:alpine AS builder
2+ WORKDIR /app
3+
4+ COPY ./package.json ./bun.lock ./
5+ RUN bun install --frozen-lockfile
6+
7+ COPY . .
8+ RUN bun run build
9+
10+ FROM oven/bun:alpine AS runner
11+ WORKDIR /app
12+
13+ COPY ./package.json ./bun.lock ./
14+ RUN bun install --frozen-lockfile --production --ignore-scripts --no-cache
15+
16+ COPY --from=builder /app/dist ./dist
17+
18+ EXPOSE 4141
19+
20+ CMD ["bun" , "run" , "dist/main.js" ]
Original file line number Diff line number Diff line change @@ -24,6 +24,20 @@ To install dependencies, run:
2424bun install
2525```
2626
27+ ## Using with docker
28+
29+ Build image
30+
31+ ``` sh
32+ docker build -t copilot-api .
33+ ```
34+
35+ Run the container
36+
37+ ``` sh
38+ docker run -p 4141:4141 copilot-api
39+ ```
40+
2741## Using with npx
2842
2943You can run the project directly using npx:
You can’t perform that action at this time.
0 commit comments