Spaces:
Runtime error
Runtime error
File size: 448 Bytes
766917a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use the official lightweight Python image
FROM python:3.10-slim
# Set working directory inside the container
WORKDIR /app
# Copy all files from your project to the container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that Hugging Face expects
EXPOSE 7860
# Command to start your FastAPI server
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|