luoyutianyang commited on
Commit
c8f500f
·
verified ·
1 Parent(s): 4cc14ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -4,8 +4,11 @@ FROM ubuntu:latest
4
  # 设置工作目录
5
  WORKDIR /usr/src/app
6
 
7
- # 安装nodejs以及npm
8
- RUN apt install nodejs npm
 
 
 
9
 
10
  # 安装Git和CMake
11
  RUN apt-get update && \
 
4
  # 设置工作目录
5
  WORKDIR /usr/src/app
6
 
7
+ # 更新apt包列表并安装Node.js和npm
8
+ RUN apt update && \
9
+ apt install -y nodejs npm && \
10
+ npm install -g npm@latest && \
11
+ ln -s /usr/bin/nodejs /usr/bin/node
12
 
13
  # 安装Git和CMake
14
  RUN apt-get update && \