env / Dockerfile
sairaj2's picture
Upload folder using huggingface_hub
40e4201 verified
raw
history blame contribute delete
628 Bytes
FROM python:3.10-slim
WORKDIR /app
# Disable all python buffering - instant logging
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
EXPOSE 7860
# Start the OpenEnv FastAPI app
ENV ENABLE_WEB_INTERFACE=true
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--timeout-keep-alive", "300", "--workers", "1"]