negotiation-openenv / Dockerfile
MridulNegi2005's picture
Fix Docker: pin python:3.10-bookworm with amd64 platform to fix registry manifest errors
e1deaf6
raw
history blame contribute delete
872 Bytes
# ── Strategic Negotiation Environment β€” OpenEnv Dockerfile ──
# Deploys the environment as a FastAPI server on HuggingFace Spaces
FROM --platform=linux/amd64 python:3.10-bookworm
WORKDIR /app
# Install dependencies first (layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY env_wrapper.py .
COPY tasks.py .
COPY app.py .
COPY inference.py .
COPY openenv.yaml .
COPY pyproject.toml .
COPY README.md .
COPY server/ server/
# Environment variables (set at runtime via HF Spaces secrets/variables)
# API_BASE_URL β€” The API endpoint for the LLM
# MODEL_NAME β€” The model identifier to use for inference
# HF_TOKEN β€” Your HuggingFace API key
EXPOSE 7860
# Run the OpenEnv server (stays alive for agent connections)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]