Spaces:
Running
Running
fix dependency
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -10,10 +10,16 @@ RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/so
|
|
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"]
|
|
|
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 && cd DA-Transformer && git checkout demo && pip install -e .
|
14 |
|
15 |
+
RUN cd dag_search && python3 setup.py build_ext --inplace && pip install -e . && cd ../..
|
16 |
|
17 |
USER user
|
18 |
|
19 |
+
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
20 |
+
|
21 |
+
COPY --link --chown=1000 ./ /home/user/app
|
22 |
+
|
23 |
+
CMD ["python3", "app.py"]
|
24 |
+
|
25 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|