Bin29 commited on
Commit
1128546
·
verified ·
1 Parent(s): d800f63

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -12,6 +12,7 @@ RUN mkdir -p /usr/share/fonts/truetype/lxgw && \
12
 
13
  # 3. 安装最精简的库 (去掉了没用的依赖)
14
  RUN pip install --no-cache-dir numpy matplotlib notebook
 
15
 
16
  # 4. 设置用户和工作目录
17
  RUN useradd -m -u 1000 user
@@ -22,6 +23,5 @@ RUN chown -R user:user /home/user/app
22
  USER user
23
  ENV HOME=/home/user \
24
  PATH=/home/user/.local/bin:$PATH
25
-
26
- CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root", "--ServerApp.token=''", "--ServerApp.password=''", "--ServerApp.allow_origin='*'", "--ServerApp.allow_remote_access=True", "--ServerApp.disable_check_xsrf=True", "--ServerApp.tornado_settings={'headers':{'Content-Security-Policy':'frame-ancestors *'}}"]
27
-
 
12
 
13
  # 3. 安装最精简的库 (去掉了没用的依赖)
14
  RUN pip install --no-cache-dir numpy matplotlib notebook
15
+ RUN pip install jupyterlab-language-pack-zh-CN
16
 
17
  # 4. 设置用户和工作目录
18
  RUN useradd -m -u 1000 user
 
23
  USER user
24
  ENV HOME=/home/user \
25
  PATH=/home/user/.local/bin:$PATH
26
+
27
+ CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root", "--ServerApp.token=''", "--ServerApp.password=''", "--ServerApp.allow_origin='*'", "--ServerApp.allow_remote_access=True", "--ServerApp.disable_check_xsrf=True", "--ServerApp.language='zh_CN'", "--ServerApp.tornado_settings={'headers':{'Content-Security-Policy':'frame-ancestors *'}}"]