CoolFace
Apppublic

albert-einstein-09/codedark

sourceHugging Facemitupdated 8mo agoView on Hugging Face
3likes
Dockerfile35 linesDownload Raw Back to root
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies7RUN apt-get update && \8    apt-get install -y --no-install-recommends curl && \9    rm -rf /var/lib/apt/lists/*10 11# Copy requirements and install Python dependencies12COPY requirements.txt .13RUN pip install --no-cache-dir -r requirements.txt14 15# Copy application code16COPY codedark/ ./codedark/17COPY data/ ./data/18 19# Environment variables20ENV PYTHONUNBUFFERED=121ENV CODEDARK_DATA_DIR=/app/data22ENV CODEDARK_TASKS_PATH=/app/data/tasks/final_25_tasks.jsonl23ENV HOST=0.0.0.024ENV PORT=786025 26# Expose HuggingFace Spaces port27EXPOSE 786028 29# Healthcheck30HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \31    CMD curl -f http://localhost:7860/health || exit 132 33# Run server34CMD ["python", "-m", "uvicorn", "codedark.server.app:app", "--host", "0.0.0.0", "--port", "7860"]35