-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 799 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (22 loc) · 799 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
29
# ============================================
# Railway 专用 Dockerfile (pnpm monorepo)
# ============================================
FROM node:20-slim
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable && corepack prepare pnpm@9 --activate
WORKDIR /app
# Copy workspace configs
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json .npmrc ./
COPY tsconfig.base.json ./
# Copy all packages source
COPY packages/shared ./packages/shared
COPY packages/core ./packages/core
COPY packages/llm-gateway ./packages/llm-gateway
COPY packages/adapters ./packages/adapters
COPY packages/api ./packages/api
# Install dependencies
RUN pnpm install --frozen-lockfile
EXPOSE 4000
# Start API with tsx from root node_modules
CMD ["./node_modules/.bin/tsx", "packages/api/src/main.ts"]