File size: 626 Bytes
c4fe0a4
 
 
 
 
 
 
 
 
cfcbebf
 
 
 
 
 
 
c4fe0a4
 
cfcbebf
c4fe0a4
 
 
 
 
 
 
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
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Remove __pycache__ dirs
RUN find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; true

# Build pipeline data at image build time
ENV PYTHONPATH=/app
RUN python scripts/startup.py

EXPOSE 7860

HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1

ENTRYPOINT ["streamlit", "run", "app/Home.py", \
    "--server.port=7860", \
    "--server.address=0.0.0.0", \
    "--server.headless=true", \
    "--server.enableCORS=false", \
    "--server.enableXsrfProtection=false"]