File size: 613 Bytes
fe64236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ============================================================
# 🐳 PyDebug-Optimizer Dockerfile
# ============================================================

# 1. Base Image
FROM python:3.10-slim

# 2. Set Working Directory
WORKDIR /app

# 3. Copy Requirements First (for caching)
COPY requirements.txt .

# 4. Install Dependencies
RUN pip install --no-cache-dir --upgrade pip && \

    pip install --no-cache-dir -r requirements.txt

# 5. Copy Project Files
COPY . .

# 6. Set PYTHONPATH (IMPORTANT for imports)
ENV PYTHONPATH=/app

# 7. Default Command
CMD ["python", "inference.py"]