Zerotracex-Stuff commited on
Commit
1eb1e17
·
1 Parent(s): 3f7575f

First model version

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -6,12 +6,24 @@ WORKDIR /app
6
 
7
  # Copy dependency files
8
  COPY package.json package-lock.json ./
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Install pnpm and dependencies
11
  RUN npm install -g pnpm && pnpm install
12
 
13
- # Copy the rest of the source code
14
- COPY . .
15
 
16
  # Build Next.js app
17
  RUN pnpm run build
 
6
 
7
  # Copy dependency files
8
  COPY package.json package-lock.json ./
9
+ # Copy the rest of the source code
10
+ COPY . .
11
+ # Install system dependencies for canvas
12
+ RUN apt-get update && apt-get install -y \
13
+ python3 \
14
+ make \
15
+ g++ \
16
+ libcairo2-dev \
17
+ libjpeg-dev \
18
+ libpango1.0-dev \
19
+ libgif-dev \
20
+ librsvg2-dev \
21
+ && rm -rf /var/lib/apt/lists/*
22
 
23
  # Install pnpm and dependencies
24
  RUN npm install -g pnpm && pnpm install
25
 
26
+
 
27
 
28
  # Build Next.js app
29
  RUN pnpm run build