update
This commit is contained in:
parent
f1ba6a816f
commit
34f4011a6b
|
@ -2,10 +2,15 @@
|
|||
|
||||
FROM public.ecr.aws/iflytek-open/cuda-go-python-base:11.6-1.17-3.9.13-ubuntu1804
|
||||
|
||||
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
|
||||
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/*
|
||||
|
||||
WORKDIR /home/user/app
|
||||
RUN useradd -m -u 1000 user
|
||||
RUN chown -R 1000.1000 /home/userF
|
||||
RUN chown -R 1000.1000 /home/user
|
||||
|
||||
|
||||
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
|
||||
|
||||
|
@ -13,8 +18,12 @@ 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 https://huggingface.co/skytnt/fbanime-gan
|
||||
RUN git https://huggingface.co/skytnt/anime-seg
|
||||
|
||||
CMD ["python3", "app.py"]
|
|
@ -1 +0,0 @@
|
|||
Subproject commit a0a563c41338cbe0d23dfb4bfc3e243c518e5768
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 79c6af6b789fb18533eb9885fc21680ee29d235e
|
|
@ -0,0 +1,2 @@
|
|||
git
|
||||
curl
|
|
@ -2,4 +2,5 @@ gradio
|
|||
onnx
|
||||
onnxruntime-gpu
|
||||
scikit-image
|
||||
imageio-ffmpeg
|
||||
imageio-ffmpeg
|
||||
torch
|
Loading…
Reference in New Issue