Update Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
CHANGED
@@ -1,5 +1,23 @@
|
|
1 |
FROM python:3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
3 |
RUN useradd -m -u 1000 user
|
4 |
USER user
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
1 |
FROM python:3.12
|
2 |
+
# 安装 Chrome 和必要的依赖
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
wget \
|
5 |
+
gnupg \
|
6 |
+
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
7 |
+
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
|
8 |
+
&& apt-get update && apt-get install -y \
|
9 |
+
google-chrome-stable \
|
10 |
+
fonts-ipafont-gothic \
|
11 |
+
fonts-wqy-zenhei \
|
12 |
+
fonts-thai-tlwg \
|
13 |
+
fonts-khmeros \
|
14 |
+
fonts-freefont-ttf \
|
15 |
+
libxss1 \
|
16 |
+
--no-install-recommends \
|
17 |
+
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
+
# 验证 Chrome 版本
|
20 |
+
RUN google-chrome --version
|
21 |
RUN useradd -m -u 1000 user
|
22 |
USER user
|
23 |
ENV PATH="/home/user/.local/bin:$PATH"
|