Spaces:
Sleeping
Sleeping
File size: 872 Bytes
d9d8c27 a72a5e3 e1deaf6 a72a5e3 e6b9219 a72a5e3 e6b9219 a72a5e3 d9d8c27 a72a5e3 e6b9219 27e2512 e6b9219 a72a5e3 d9d8c27 a72a5e3 d9d8c27 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # ββ 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"]
|