-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM oven/bun:1.3.5-slim AS install
WORKDIR /app
# Copy workspace root files needed for dependency resolution
COPY package.json bun.lock ./
COPY apps/backend/package.json apps/backend/package.json
COPY apps/web/package.json apps/web/package.json
# Install production dependencies only
RUN bun install --frozen-lockfile --production --ignore-scripts
# --- Runtime stage ---
FROM oven/bun:1.3.5-slim
WORKDIR /app
COPY --from=install /app/node_modules node_modules
COPY --from=install /app/apps/backend/node_modules apps/backend/node_modules
COPY apps/backend/src apps/backend/src
COPY apps/backend/package.json apps/backend/package.json
COPY apps/backend/tsconfig.json apps/backend/tsconfig.json
ENV NODE_ENV=production
EXPOSE 10000
CMD ["bun", "run", "apps/backend/src/index.ts"]