-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
33 lines (24 loc) · 841 Bytes
/
Dockerfile.dev
File metadata and controls
33 lines (24 loc) · 841 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
# Development Dockerfile
FROM node:18-alpine AS dev
WORKDIR /app
# Install dependencies needed for native modules
RUN apk add --no-cache libc6-compat python3 make g++
# Copy workspace configuration and package files
COPY package.json yarn.lock turbo.json ./
# Create app directories and copy package.json files
RUN mkdir -p apps/api apps/web apps/docs apps/mobile
COPY apps/api/package.json ./apps/api/
COPY apps/web/package.json ./apps/web/
COPY apps/docs/package.json ./apps/docs/
COPY apps/mobile/package.json ./apps/mobile/
# Copy all packages (needed for workspace resolution)
COPY packages/ ./packages/
# Enable corepack for yarn
RUN corepack enable
# Install all dependencies
RUN yarn install --frozen-lockfile --production=false
# Copy source code
COPY . .
EXPOSE 3000 3001 8000
ENV NODE_ENV=development
CMD ["yarn", "dev"]