oau-book-recommender / Dockerfile
Emeritus-21's picture
Create Dockerfile
a264743
raw
history blame contribute delete
410 Bytes
# Base image with Python
FROM python:3.10-slim
# Set working directory in container
WORKDIR /app
# Copy dependencies file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy everything into the container
COPY . .
# Expose the port Hugging Face expects
EXPOSE 7860
# Run the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]