openenv-cloudsoc / Dockerfile
OpenEnv Contributor
refactor: full OpenEnv REST API compliance with FastAPI + strict 0.1-0.9 scoring
d73d6cb
Raw
History Blame Contribute Delete
679 Bytes
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first for caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY cloud_soc_env.py .
COPY inference.py .
COPY graders.py .
COPY openenv.yaml .
COPY dummy_server.py .
COPY server/ ./server/
# Environment variables (defaults)
# Using HF's new router.huggingface.co endpoint
ENV API_BASE_URL="https://router.huggingface.co/v1"
ENV MODEL_NAME="Qwen/Qwen2.5-Coder-32B-Instruct"
ENV HF_TOKEN=""
# Run FastAPI server conforming to OpenEnv REST spec
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]