mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 06:35:59 +08:00
add dependencies of chrome (#3352)
### 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)
This commit is contained in:
parent
f4c52371ab
commit
784ae896d1
12
Dockerfile
12
Dockerfile
@ -18,7 +18,17 @@ RUN sed -i 's|http://archive.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g'
|
||||
|
||||
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
||||
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
libasound2t64 libatk-bridge2.0-0 libgtk-4-1 libnss3 xdg-utils unzip libgbm-dev wget \
|
||||
&& rm -rf /var/lib/apt/lists/* && \
|
||||
wget -q -O chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
|
||||
unzip chrome-linux64.zip && \
|
||||
rm chrome-linux64.zip && \
|
||||
mv chrome-linux64 /opt/chrome/ && \
|
||||
ln -s /opt/chrome/chrome /usr/local/bin/ && \
|
||||
wget -q -O chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
|
||||
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
|
||||
rm chromedriver-linux64.zip && \
|
||||
mv chromedriver /usr/local/bin/ && rm -f /usr/bin/google-chrome
|
||||
|
||||
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" \
|
||||
&& pipx install poetry \
|
||||
|
@ -18,7 +18,17 @@ RUN sed -i 's|http://archive.ubuntu.com|https://mirrors.tuna.tsinghua.edu.cn|g'
|
||||
|
||||
RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked \
|
||||
apt update && apt install -y curl libpython3-dev nginx libglib2.0-0 libglx-mesa0 pkg-config libicu-dev libgdiplus default-jdk python3-pip pipx \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
libasound2t64 libatk-bridge2.0-0 libgtk-4-1 libnss3 xdg-utils unzip libgbm-dev wget \
|
||||
&& rm -rf /var/lib/apt/lists/* && \
|
||||
wget -q -O chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
|
||||
unzip chrome-linux64.zip && \
|
||||
rm chrome-linux64.zip && \
|
||||
mv chrome-linux64 /opt/chrome/ && \
|
||||
ln -s /opt/chrome/chrome /usr/local/bin/ && \
|
||||
wget -q -O chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
|
||||
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
|
||||
rm chromedriver-linux64.zip && \
|
||||
mv chromedriver /usr/local/bin/ && rm -f /usr/bin/google-chrome
|
||||
|
||||
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" \
|
||||
&& pipx install poetry \
|
||||
|
Loading…
x
Reference in New Issue
Block a user