Spaces:
Running
Running
fix dependency
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -6,10 +6,14 @@ RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir
|
|
6 |
|
7 |
WORKDIR /home/user/app
|
8 |
|
9 |
-
|
10 |
|
11 |
-
RUN pip install --no-cache-dir
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
|
15 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
6 |
|
7 |
WORKDIR /home/user/app
|
8 |
|
9 |
+
RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/sources.list && sed -i 's http://archive.ubuntu.com http://us-east-1.ec2.archive.ubuntu.com g' /etc/apt/sources.list && sed -i '/security/d' /etc/apt/sources.list && apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
10 |
|
11 |
+
RUN pip install --no-cache-dir Cython "gradio==3.28.3" "torch==1.10.1"
|
12 |
|
13 |
+
RUN git clone --recurse-submodules https://github.com/thu-coai/DA-Transformer.git && git checkout demo && pip install -e .
|
14 |
+
|
15 |
+
RUN cd dag_search && python3 setup.py build_ext --inplace && pip install -e .
|
16 |
+
|
17 |
+
USER user
|
18 |
|
19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|