andevs commited on
Commit
024e641
·
verified ·
1 Parent(s): 20517a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -1,11 +1,22 @@
1
- FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
7
 
 
8
  COPY app.py .
 
 
 
9
 
10
  # Create data directory for persistent storage
11
  RUN mkdir -p /data
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY requirements.txt .
12
+ RUN pip install --no-cache-dir --upgrade pip && \
13
+ pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Copy all necessary files
16
  COPY app.py .
17
+ COPY index.html .
18
+ COPY app.js .
19
+ COPY vercel.json .
20
 
21
  # Create data directory for persistent storage
22
  RUN mkdir -p /data