CoolFace
Apppublic

prashant-9457/my-openenv-task

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1FROM ghcr.io/meta-pytorch/openenv-base:latest2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y --no-install-recommends \7    curl \8    && rm -rf /var/lib/apt/lists/*9 10# Upgrade pip in a separate layer for better caching11RUN pip install --no-cache-dir --upgrade pip12 13# Copy and install Python dependencies14COPY requirements.txt .15RUN pip install --no-cache-dir -r requirements.txt16 17# Copy all project files18COPY . .19 20EXPOSE 786021 22HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \23    CMD curl -f http://localhost:7860/ || exit 124 25CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]26