Deploy managed portal with Docker

This commit is contained in:
Yoilun
2026-05-07 17:58:26 +08:00
parent 74d1e72591
commit be5014c582
15 changed files with 350 additions and 39 deletions

View File

@@ -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