File size: 623 Bytes
57a1582
 
f002a75
96266ad
 
f002a75
 
c133b7f
f002a75
96266ad
f002a75
 
 
 
 
 
 
 
 
57a1582
 
 
 
 
 
 
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
FROM python:3.10.12

# create user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

# setting workdir
WORKDIR $HOME/app

COPY --chown=user ./requirements.txt requirements.txt
COPY --chown=user ./packages.txt packages.txt


RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir -r requirements.txt

COPY --chown=user . /app

EXPOSE 8501
CMD streamlit run app.py \
    --server.headless true \
    --server.enableCORS false \
    --server.enableXsrfProtection false \
    --server.fileWatcherType none