Spaces:
Running
Running
File size: 414 Bytes
30ddf21 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Use official Python image
FROM python:3.10-slim
# Set the working directory inside the server
WORKDIR /app
# Copy your requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all your Python files, the database, and the logo
COPY . .
# Hugging Face requires apps to run on port 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|