File size: 856 Bytes
1cfeb15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ClaimSense server-only container, layered on top of the OpenEnv base image.
# Used in multi-image setups where the gym is one of several environments.

ARG BASE_IMAGE=openenv-base:latest
FROM ${BASE_IMAGE}

# Install gym-specific dependencies (currently a no-op — kept for future use).
COPY claims_env/server/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt

# OpenEnv runtime sources live alongside the gym in the multi-image layout.
COPY src/openenv/core/ /app/src/openenv/core/
COPY claims_env/      /app/claims_env/

ENV PYTHONPATH=/app/src:/app

EXPOSE 8000

HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
    CMD curl -fsS http://localhost:8000/health || exit 1

CMD ["uvicorn", "claims_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]