CoolFace
Apppublic

SHUBHAMOS/meta-pytorch-hackathon

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
Dockerfile36 linesDownload Raw Back to root
1FROM python:3.10-slim2 3# Force unbuffered output for real-time logs on HF4ENV PYTHONUNBUFFERED=15 6WORKDIR /app7 8# Install build dependencies for C-extensions9RUN apt-get update && apt-get install -y --no-install-recommends \10    gcc \11    python3-dev \12    && rm -rf /var/lib/apt/lists/*13 14# Create logs directory with correct permissions15RUN mkdir -p /app/logs && chmod -R 777 /app/logs16 17# Copy requirements FIRST to leverage Docker layer caching18COPY requirements.txt .19RUN pip install --no-cache-dir --upgrade pip && \20    pip install --no-cache-dir -r requirements.txt21 22# Copy project files23COPY . .24 25# Ensure test scripts are executable26RUN chmod +x ./tests/e2e_runner.sh27 28# Meta OpenEnv Requirement: Install the package in editable mode29# This registers the [project.scripts] and installs openenv dependencies.30RUN pip install --no-cache-dir -e .31 32# HF Spaces use 7860 as the internal port33EXPOSE 786034 35CMD ["server"]36