From 2e78802f3334a0ce5c069414d8a95569a5b59b64 Mon Sep 17 00:00:00 2001 From: SOULOFCINDER <841135647@qq.com> Date: Thu, 6 Apr 2023 13:02:38 +0800 Subject: [PATCH] update --- git_large_coco/Dockerfile | 10 ++++------ git_large_coco/packages.txt | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/git_large_coco/Dockerfile b/git_large_coco/Dockerfile index 82f7712..cda5766 100644 --- a/git_large_coco/Dockerfile +++ b/git_large_coco/Dockerfile @@ -7,11 +7,6 @@ RUN sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/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/* -RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash -RUN apt-get install git-lfs -RUN git lfs install -RUN git clone http://172.16.59.16:3000/microsoft/git-large-coco.git - WORKDIR /home/user/app RUN useradd -m -u 1000 user RUN chown -R 1000.1000 /home/user @@ -23,8 +18,11 @@ RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/ RUN pip install --no-cache-dir pip==22.3.1 RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt - COPY --chown=1000 ./ /home/user/app +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash +RUN apt-get install git-lfs +RUN git lfs install +RUN git clone http://172.16.59.16:3000/microsoft/git-large-coco.git CMD ["python3", "app.py"] \ No newline at end of file diff --git a/git_large_coco/packages.txt b/git_large_coco/packages.txt index 0899c29..b399c93 100644 --- a/git_large_coco/packages.txt +++ b/git_large_coco/packages.txt @@ -1 +1,2 @@ -git \ No newline at end of file +git +curl \ No newline at end of file