enrollmentapi / Dockerfile
colors99999's picture
Create Dockerfile
0c72f99 verified
Raw History Blame Contribute Delete
341 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install dependencies first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY . .
# Hugging Face Spaces expects the app to listen on port 7860
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]