Spaces:
Runtime error

File size: 1,375 Bytes
56c0d82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
# Optional container for the same process ./install.sh starts.
# Build context is deploy/plug/image, produced by scripts/stage_plug_image.py.
# The documented command is ./install.sh. This image is the container form.
FROM python:3.12-slim-bookworm

RUN apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm ca-certificates \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /opt/aureon

COPY requirements-plug.lock /opt/aureon/requirements-plug.lock
RUN pip install --no-cache-dir -r /opt/aureon/requirements-plug.lock

COPY . /opt/aureon
RUN cd /opt/aureon/frontend && npm ci --ignore-scripts

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PYTHONPATH=/opt/aureon:/opt/aureon/mcp \
    AUREON_PLUG_AND_PLAY=1 \
    AUREON_LLM_OFFLINE=1 \
    AUREON_SUPPRESS_IMPORT_SIDE_EFFECTS=1 \
    AUREON_LIVE_TRADING=0 \
    AUREON_DISABLE_REAL_ORDERS=1 \
    AUREON_DISABLE_EXCHANGE_MUTATIONS=1 \
    AUREON_FUSION_ARM_LIVE= \
    AUREON_AUTONOMY_MODE=guarded \
    AUREON_OPERATOR_ENV=development \
    AUREON_OPERATOR_HOST=127.0.0.1 \
    AUREON_OPERATOR_PORT=8790 \
    AUREON_PUBLIC_OPEN=1

EXPOSE 8787 8790 8077 5173

HEALTHCHECK --interval=5s --timeout=5s --start-period=40s --retries=20 \
    CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8787/healthz', timeout=3)"

CMD ["python", "scripts/plug_and_play.py"]