Equilibrium / Dockerfile
ketannnn's picture
Project completed with dep
5117aff
raw
history blame contribute delete
594 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code (including config.json and routers/)
COPY . .
# Set environment variables for production
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
# Expose the standard Hugging Face port
EXPOSE 7860
# Run the application using uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]