FaceFeel / Dockerfile
Prime810's picture
Update Dockerfile
6960655 verified
raw
history blame
483 Bytes
# Use a slim Python 3.10 base image
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the backend and frontend source code
COPY backend/
COPY frontend/
# Expose FastAPI app on port 7860 (required by Hugging Face)
CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"]