File size: 505 Bytes
38246eb
69a1c4c
00c5821
5c1d67f
d9ff01d
7c33e15
d9ff01d
5c1d67f
69a1c4c
 
 
 
 
 
 
 
 
d026430
d9ff01d
5c1d67f
 
 
 
 
69a1c4c
 
 
 
30e3e92
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
FROM python:3.12-slim


USER root
RUN useradd -ms /bin/bash user
RUN mkdir /app 
RUN chown -R user /app

WORKDIR /app

RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt ./
RUN pip3 install -r requirements.txt

USER user

WORKDIR /app

COPY . .

EXPOSE 8501

HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

ENTRYPOINT ["streamlit", "run", "/app/app.py", "--server.port=8501", "--server.address=0.0.0.0"]