coteerratu commited on
Commit
a31849a
·
verified ·
1 Parent(s): f19aba1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- # 使用Ubuntu作为基础镜像
2
  FROM ubuntu:latest
3
 
4
  # 更新包列表并安装必要的软件包
@@ -10,19 +10,23 @@ RUN apt-get update && apt-get install -y \
10
  curl \
11
  python3 \
12
  python3-venv \
 
 
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
 
 
16
  # 安装 Node.js 和 npm
17
- RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
18
- && apt-get install -y nodejs build-essential \
19
- && apt-get clean \
20
- && rm -rf /var/lib/apt/lists/*
21
 
22
  # 创建 /data 目录并赋予用户 1001 权限
23
  RUN mkdir -p /data && chown -R 1001:1001 /data
24
 
25
- # 下载并安装 wetty
26
  RUN npm install -g wetty
27
 
28
  # 创建用户 1001 并设置工作目录
 
1
+ # 使用 Ubuntu 作为基础镜像
2
  FROM ubuntu:latest
3
 
4
  # 更新包列表并安装必要的软件包
 
10
  curl \
11
  python3 \
12
  python3-venv \
13
+ python3-pip \
14
+ build-essential \
15
  && apt-get clean \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ # 安装 Python 的 distutils 和 setuptools
19
+ RUN pip3 install --upgrade pip setuptools
20
+
21
  # 安装 Node.js 和 npm
22
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
23
+ apt-get install -y nodejs && \
24
+ npm install -g npm@latest
 
25
 
26
  # 创建 /data 目录并赋予用户 1001 权限
27
  RUN mkdir -p /data && chown -R 1001:1001 /data
28
 
29
+ # 安装 wetty
30
  RUN npm install -g wetty
31
 
32
  # 创建用户 1001 并设置工作目录