File size: 1,009 Bytes
8669f7f
0913c52
 
 
8669f7f
 
 
 
 
1ff7229
8669f7f
0913c52
 
 
 
 
1ff7229
3f2dff3
448aae8
1ff7229
 
8669f7f
 
 
 
0913c52
1ff7229
 
0913c52
8669f7f
0913c52
8669f7f
 
0913c52
75dfb75
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
FROM python:3.11-slim

WORKDIR /app

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PIP_DISABLE_PIP_VERSION_CHECK=1 \
    PIP_NO_CACHE_DIR=1

# System dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    curl \
    git \
    && rm -rf /var/lib/apt/lists/*

# Install Python deps
COPY requirements-space.txt /app/requirements.txt
RUN pip install --upgrade pip && pip install -r requirements.txt -v

# Copy application code
COPY scievo/ /app/scievo/
COPY streamlit-client/ /app/streamlit-client/

WORKDIR /app/streamlit-client

# Runtime writable dirs
RUN mkdir -p case-study-memory workspace tmp_brain

EXPOSE 7860

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
    CMD curl --fail http://localhost:7860/_stcore/health || exit 1

CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableXsrfProtection=false", "--browser.gatherUsageStats=false"]