Spaces:
Running
Running
fix dependency
Browse files- dockerfile → Dockerfile +24 -24
dockerfile → Dockerfile
RENAMED
@@ -1,24 +1,24 @@
|
|
1 |
-
# Use the official Python 3.9 image
|
2 |
-
FROM python:3.9
|
3 |
-
|
4 |
-
RUN --mount=target=/root/packages.txt,source=packages.txt 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 && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
5 |
-
|
6 |
-
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1"
|
7 |
-
|
8 |
-
WORKDIR /home/user/app
|
9 |
-
|
10 |
-
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
|
11 |
-
|
12 |
-
RUN pip install --no-cache-dir Cython "gradio==3.28.3" "torch==1.10.1"
|
13 |
-
|
14 |
-
RUN git clone --recurse-submodules https://github.com/thu-coai/DA-Transformer.git && git checkout demo && pip install -e .
|
15 |
-
|
16 |
-
RUN cd dag_search && python3 setup.py build_ext --inplace && pip install -e .
|
17 |
-
|
18 |
-
USER user
|
19 |
-
|
20 |
-
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
21 |
-
|
22 |
-
COPY --link --chown=1000 ./ /home/user/app
|
23 |
-
|
24 |
-
CMD ["python3", "app.py"]
|
|
|
1 |
+
# Use the official Python 3.9 image
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
RUN --mount=target=/root/packages.txt,source=packages.txt 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 && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
5 |
+
|
6 |
+
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1"
|
7 |
+
|
8 |
+
WORKDIR /home/user/app
|
9 |
+
|
10 |
+
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
|
11 |
+
|
12 |
+
RUN pip install --no-cache-dir Cython "gradio==3.28.3" "torch==1.10.1"
|
13 |
+
|
14 |
+
RUN git clone --recurse-submodules https://github.com/thu-coai/DA-Transformer.git && git checkout demo && pip install -e .
|
15 |
+
|
16 |
+
RUN cd dag_search && python3 setup.py build_ext --inplace && pip install -e .
|
17 |
+
|
18 |
+
USER user
|
19 |
+
|
20 |
+
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
21 |
+
|
22 |
+
COPY --link --chown=1000 ./ /home/user/app
|
23 |
+
|
24 |
+
CMD ["python3", "app.py"]
|