File size: 748 Bytes
44acddd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84a14d0
44acddd
 
 
 
 
 
 
 
 
 
 
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
FROM python:3.11

COPY requirements.txt requirements.txt
COPY requirements_gpu.txt requirements_gpu.txt
COPY requirements_app.txt requirements_app.txt

RUN apt-get update && apt-get install -y --no-install-recommends \

      bzip2 \
      g++ \
      git \
      graphviz \
      libgl1-mesa-glx \
      libhdf5-dev \
      openmpi-bin \
      wget \
      python3-tk && \
    rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip

RUN pip install --no-cache-dir -r requirements.txt
# RUN pip install --no-cache-dir -r requirements_gpu.txt
RUN pip install --no-cache-dir -r requirements_app.txt

RUN useradd -m -u 1000 myuser

USER myuser

COPY --chown=myuser app app

EXPOSE 8001

CMD ["python", "app/main.py"]