hackathon-book-api / Dockerfile
Asma-yaseen's picture
Deploy FastAPI backend to Hugging Face Spaces
aee144c
Raw
History Blame Contribute Delete
295 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Expose port
EXPOSE 8000
# Start application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]