Kevin Hu
commited on
Commit
·
9bf7e7d
1
Parent(s):
b691127
add dependencies of chrome (#3352)
Browse files### What problem does this PR solve?
### Type of change
- [ ] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
- Dockerfile +11 -1
- Dockerfile.slim +11 -1
Dockerfile
CHANGED
@@ -18,7 +18,17 @@ RUN sed -i 's|http://archive.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g'
|
|
18 |
|
19 |
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
20 |
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip3 config set global.trusted-host "pypi.tuna.tsinghua.edu.cn mirrors.pku.edu.cn" && pip3 config set global.extra-index-url "https://mirrors.pku.edu.cn/pypi/web/simple" \
|
24 |
&& pipx install poetry \
|
|
|
18 |
|
19 |
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
20 |
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
21 |
+
libasound2t64 libatk-bridge2.0-0 libgtk-4-1 libnss3 xdg-utils unzip libgbm-dev wget \
|
22 |
+
&& rm -rf /var/lib/apt/lists/* && \
|
23 |
+
wget -q -O chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
|
24 |
+
unzip chrome-linux64.zip && \
|
25 |
+
rm chrome-linux64.zip && \
|
26 |
+
mv chrome-linux64 /opt/chrome/ && \
|
27 |
+
ln -s /opt/chrome/chrome /usr/local/bin/ && \
|
28 |
+
wget -q -O chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
|
29 |
+
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
|
30 |
+
rm chromedriver-linux64.zip && \
|
31 |
+
mv chromedriver /usr/local/bin/ && rm -f /usr/bin/google-chrome
|
32 |
|
33 |
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip3 config set global.trusted-host "pypi.tuna.tsinghua.edu.cn mirrors.pku.edu.cn" && pip3 config set global.extra-index-url "https://mirrors.pku.edu.cn/pypi/web/simple" \
|
34 |
&& pipx install poetry \
|
Dockerfile.slim
CHANGED
@@ -18,7 +18,17 @@ RUN sed -i 's|http://archive.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g'
|
|
18 |
|
19 |
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
20 |
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip3 config set global.trusted-host "pypi.tuna.tsinghua.edu.cn mirrors.pku.edu.cn" && pip3 config set global.extra-index-url "https://mirrors.pku.edu.cn/pypi/web/simple" \
|
24 |
&& pipx install poetry \
|
|
|
18 |
|
19 |
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
20 |
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
21 |
+
libasound2t64 libatk-bridge2.0-0 libgtk-4-1 libnss3 xdg-utils unzip libgbm-dev wget \
|
22 |
+
&& rm -rf /var/lib/apt/lists/* && \
|
23 |
+
wget -q -O chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
|
24 |
+
unzip chrome-linux64.zip && \
|
25 |
+
rm chrome-linux64.zip && \
|
26 |
+
mv chrome-linux64 /opt/chrome/ && \
|
27 |
+
ln -s /opt/chrome/chrome /usr/local/bin/ && \
|
28 |
+
wget -q -O chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
|
29 |
+
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
|
30 |
+
rm chromedriver-linux64.zip && \
|
31 |
+
mv chromedriver /usr/local/bin/ && rm -f /usr/bin/google-chrome
|
32 |
|
33 |
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip3 config set global.trusted-host "pypi.tuna.tsinghua.edu.cn mirrors.pku.edu.cn" && pip3 config set global.extra-index-url "https://mirrors.pku.edu.cn/pypi/web/simple" \
|
34 |
&& pipx install poetry \
|