Deploy managed portal with Docker
This commit is contained in:
@@ -9,7 +9,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
|
||||
WORKDIR /opt/people-flow
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN sed -i 's|http://deb.debian.org/debian|http://mirrors.aliyun.com/debian|g; s|http://deb.debian.org/debian-security|http://mirrors.aliyun.com/debian-security|g' /etc/apt/sources.list.d/debian.sources && \
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
libglib2.0-0 \
|
||||
libgl1 \
|
||||
@@ -19,11 +20,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
COPY requirements-docker.txt ./requirements-docker.txt
|
||||
|
||||
RUN python -m pip install --upgrade pip setuptools wheel && \
|
||||
pip install "numpy<2" && \
|
||||
pip install --extra-index-url https://download.pytorch.org/whl/cpu \
|
||||
"torch==2.6.0+cpu" "torchvision==0.21.0+cpu" && \
|
||||
pip install "tensorflow==2.16.1" "tf-keras==2.16.0" && \
|
||||
pip install -r requirements-docker.txt
|
||||
pip install "numpy<2"
|
||||
|
||||
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu \
|
||||
"torch==2.6.0+cpu" "torchvision==0.21.0+cpu"
|
||||
|
||||
RUN pip install "tensorflow==2.16.1" "tf-keras==2.16.0"
|
||||
|
||||
RUN pip install -r requirements-docker.txt
|
||||
|
||||
COPY . .
|
||||
COPY scripts/docker-entrypoint.sh /opt/people-flow/scripts/docker-entrypoint.sh
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
flask>=3.1.0
|
||||
ultralytics>=8.3.0
|
||||
opencv-python-headless>=4.10.0
|
||||
opencv-python==4.11.0.86
|
||||
opencv-python-headless==4.11.0.86
|
||||
deepface>=0.0.93
|
||||
pyyaml>=6.0.2
|
||||
pandas>=2.2.3
|
||||
|
||||
@@ -7,7 +7,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
RUN sed -i 's|http://deb.debian.org/debian|http://mirrors.aliyun.com/debian|g; s|http://deb.debian.org/debian-security|http://mirrors.aliyun.com/debian-security|g' /etc/apt/sources.list.d/debian.sources \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
libgl1 \
|
||||
|
||||
Reference in New Issue
Block a user