-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 694 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 694 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
FROM oven/bun:1
RUN apt-get update -y && apt-get install -y openssl
RUN bun i -g pnpm@10.26.2
WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json .npmrc ./
COPY apps/web/package.json ./apps/web/
COPY apps/backend/package.json ./apps/backend/
COPY packages/eslint-config/package.json ./packages/eslint-config/
COPY packages/typescript-config/package.json ./packages/typescript-config/
COPY packages/ui/package.json ./packages/ui/
RUN timeout 120 pnpm install --frozen-lockfile
COPY . .
RUN cd apps/backend && pnpm run generate
ENV NODE_ENV=production
RUN cd apps/web && bun run build
EXPOSE 5000
WORKDIR /app/apps/backend
ENTRYPOINT ["./entrypoint.sh", "--bun"]