smart-sign / dockerfile
Youssefebrahim1's picture
Upload dockerfile
c0e3b12 verified
Raw
History Blame Contribute Delete
411 Bytes
# Use official Python slim image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port (Hugging Face uses 7860 by default for Spaces)
EXPOSE 7860
# Run the FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]