python-debugger-env / Dockerfile
Inzimam786's picture
Upload 23 files
fe64236 verified
Raw
History Blame Contribute Delete
613 Bytes
# ============================================================
# 🐳 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"]