Team Ai
Apppublic

Shumaque/code-review-agent

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile42 linesDownload Raw Back to root
1# Use Python base image (more reliable than openenv-base)2FROM python:3.11-slim3 4# Set working directory5WORKDIR /app6 7# Install system dependencies8RUN apt-get update && apt-get install -y --no-install-recommends \9    curl \10    git \11    && rm -rf /var/lib/apt/lists/*12 13# Copy all files first (for better caching and to ensure README.md is available)14COPY . .15 16# Install Python dependencies17RUN pip install --no-cache-dir -e .18 19# Create non-root user and set permissions20RUN adduser --disabled-password --gecos "" appuser && \21    chown -R appuser:appuser /app22 23# Switch to non-root user24USER appuser25 26# Expose port27EXPOSE 800028 29# Environment variables30ENV PYTHONUNBUFFERED=1 \31    PYTHONDONTWRITEBYTECODE=1 \32    ENABLE_WEB_INTERFACE=true \33    API_BASE_URL="https://router.huggingface.co/v1" \34    MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"35 36# Health check37HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \38    CMD curl -f http://localhost:8000/health || exit 139 40# Run the server41CMD ["python", "server/app.py"]42