File size: 461 Bytes
113ba48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.10.12

RUN apt-get update -y

RUN apt-get install -y software-properties-common \
    build-essential \
    hdf5-tools \
    libgl1 \
    libgtk2.0-dev \
    libgeos-dev

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

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

RUN pip3 install -r requirements.txt

COPY --chown=user . .

EXPOSE 8080

CMD ["python3", "run.py"]