update dockerfile

This commit is contained in:
SOULOFCINDER 2023-03-29 10:15:27 +08:00
parent ce387cc039
commit b76b89e74f
1 changed files with 3 additions and 6 deletions

View File

@ -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/*
@ -32,6 +32,3 @@ 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