SudiptaKumar/object_detection
0
1FROM python:3.11
2
3COPY requirements.txt requirements.txt
4COPY requirements_gpu.txt requirements_gpu.txt
5COPY requirements_app.txt requirements_app.txt
6
7RUN apt-get update && apt-get install -y --no-install-recommends \
8 bzip2 \
9 g++ \
10 git \
11 graphviz \
12 libgl1-mesa-glx \
13 libhdf5-dev \
14 openmpi-bin \
15 wget \
16 python3-tk && \
17 rm -rf /var/lib/apt/lists/*
18
19RUN pip install --upgrade pip
20
21RUN pip install --no-cache-dir -r requirements.txt
22# RUN pip install --no-cache-dir -r requirements_gpu.txt
23RUN pip install --no-cache-dir -r requirements_app.txt
24
25RUN useradd -m -u 1000 myuser
26
27USER myuser
28
29COPY --chown=myuser app app
30
31EXPOSE 8001
32
33CMD ["python", "app/main.py"]