FROM python:3.11-slim RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python dependencies COPY server/requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt # Copy environment code COPY . /app/code_debug_env/ # Health check (required by hackathon validator) HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # Expose port EXPOSE 8000 # Start server ENV ENABLE_WEB_INTERFACE=true CMD ["uvicorn", "code_debug_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]