cv_match / Dockerfile
mo7amed3ly's picture
Update Dockerfile
86a570e verified
raw
history blame contribute delete
372 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy dependency file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
# Hugging Face Spaces uses port 7860
EXPOSE 7860
# Start FastAPI (IMPORTANT LINE)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]