This commit is contained in:
SOULOFCINDER 2023-04-06 13:02:38 +08:00
parent 105e3414a4
commit 2e78802f33
2 changed files with 6 additions and 7 deletions

View File

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

View File

@ -1 +1,2 @@
git
git
curl