Spaces:
Sleeping
Sleeping
File size: 486 Bytes
6c8bcbc e85fbe3 6c8bcbc 4f81b2c |
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 |
# Base Python image
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN pip install --upgrade pip
# Create app working directory
WORKDIR /app
# Copy all project files
COPY . .
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Start FastAPI server
CMD ["python", "run_fastapi.py"]
|