sace / Dockerfile
VijayaBharathi A
Add FastAPI app and dependencies for Hugging Face Space
96893dc
raw
history blame contribute delete
265 Bytes
FROM python:3.10.0
# Set working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose port
EXPOSE 7860
# Run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]