File size: 706 Bytes
4578a8c
1c04e5a
 
ec4b3d0
 
 
 
 
fdb9bd4
1c04e5a
 
fdb9bd4
 
 
 
ec4b3d0
fdb9bd4
1c04e5a
ec4b3d0
1c04e5a
ec4b3d0
fdb9bd4
ec4b3d0
1c04e5a
fdb9bd4
 
 
 
 
 
 
 
 
 
ec4b3d0
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
FROM python:3.10-slim

RUN apt-get update && apt-get install -y \
    libgl1 \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender1 \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

ENV STREAMLIT_HOME=/tmp/.streamlit
ENV MPLCONFIGDIR=/tmp/.mplconfig
RUN mkdir -p $STREAMLIT_HOME $MPLCONFIGDIR

WORKDIR /app
COPY . /app

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

ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_SERVER_PORT=${PORT}
ENV STREAMLIT_TELEMETRY_ENABLED=false

RUN echo "\
[server]\n\
headless = true\n\
enableCORS = false\n\
port = ${PORT}\n\
\n\
[global]\n\
disableWatchdogWarning = true\n\
" > $STREAMLIT_HOME/config.toml

CMD ["streamlit", "run", "src/streamlit_app.py"]