From b76b89e74f9a59b7b27ac5c584f9292f9ed94841 Mon Sep 17 00:00:00 2001 From: SOULOFCINDER <841135647@qq.com> Date: Wed, 29 Mar 2023 10:15:27 +0800 Subject: [PATCH] update dockerfile --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e85c766..8a1478b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ FROM docker.io/library/python:3.8.9 RUN apt-get install -y unzip -RUN sed -i 's http://deb.debian.org http://mirrors.ustc.edu.cn g' /etc/apt/sources.list -RUN sed -i '/security/d' /etc/apt/sources.list +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list +RUN sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/* @@ -31,7 +31,4 @@ COPY --chown=1000 ./ /home/user/app COPY --chown=1000 hub/checkpoints /root/.cache/torch/hub/checkpoints -CMD ["python3", "app.py"] - - -export COMPOSE_DOCKER_CLI_BUILD=1 \ No newline at end of file +CMD ["python3", "app.py"] \ No newline at end of file