File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ .git
4+ .devenv
5+ .env
6+ * .log
Original file line number Diff line number Diff line change 1+ # Build from repo root: docker build -t prism-server -f apps/server/Dockerfile .
2+ FROM oven/bun:1.3.2 AS builder
3+ WORKDIR /app
4+ COPY package.json bun.lock ./
5+ COPY apps/desktop/package.json ./apps/desktop/
6+ COPY apps/server/package.json ./apps/server/
7+ COPY packages/api-client/package.json ./packages/api-client/
8+ RUN bun install --frozen-lockfile --ignore-scripts
9+ COPY apps/server ./apps/server
10+ RUN cd apps/server && bun build src/index.ts --outdir dist --target bun
11+
12+ FROM oven/bun:1.3.2
13+ WORKDIR /app
14+ ENV NODE_ENV=production
15+ COPY --from=builder /app/apps/server/dist ./dist
16+ COPY --from=builder /app/node_modules ./node_modules
17+ EXPOSE 3000
18+ CMD ["bun" , "run" , "dist/index.js" ]
You can’t perform that action at this time.
0 commit comments