-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 773 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
30
31
32
33
# Root Dockerfile for development with docker-compose
# For production, use apps/api/Dockerfile and apps/web/Dockerfile
FROM node:18-alpine
WORKDIR /app
# Install dependencies for building native modules
RUN apk add --no-cache python3 make g++
# Copy package files
COPY package*.json ./
COPY turbo.json ./
# Copy all workspace package.json files
COPY apps/api/package.json ./apps/api/
COPY apps/web/package.json ./apps/web/
COPY packages/database/package.json ./packages/database/
COPY packages/auth/package.json ./packages/auth/
# Install all dependencies
RUN npm ci
# Copy source code
COPY . .
# Generate Prisma client
RUN npm run db:generate --workspace=@studysync/database || true
EXPOSE 3000 3001
# Default command runs development
CMD ["npm", "run", "dev"]