-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
28 lines (21 loc) · 828 Bytes
/
Dockerfile.dev
File metadata and controls
28 lines (21 loc) · 828 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
# Option A: single dev container running yarn turbo dev (API + Vite)
FROM node:22-alpine
WORKDIR /app
# Copy workspace config and all packages needed for turbo dev
COPY package.json turbo.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY packages/common packages/common
COPY packages/api packages/api
COPY packages/client packages/client
COPY packages/admin packages/admin
COPY scripts scripts
# Install at workspace root (installs deps for api, client, common)
RUN corepack enable && yarn install --frozen-lockfile
# /data for SQLite; turbo cache for faster restarts
RUN mkdir -p /data /app/.turbo/cache && chown -R node:node /data /app/.turbo
ENV NODE_ENV=development
ENV ERGO_HOST=ergo
ENV ERGO_PORT=6667
EXPOSE 3000 5173 5174
USER node
# Run both API and client (Vite) via turbo
CMD ["yarn", "turbo", "dev"]