aiteacher / Dockerfile
triflix's picture
Update Dockerfile
55af696 verified
raw
history blame contribute delete
554 Bytes
# Base Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy only required files and folders
COPY main.py .
COPY static/ ./static/
COPY templates/ ./templates/
# Expose port Hugging Face expects
EXPOSE 7860
# Run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]