leezhuuu commited on
Commit
17e1a74
1 Parent(s): 887e0df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -4,6 +4,12 @@ FROM linuxserver/librespeed:5.4.1
4
  # 设置时区环境变量
5
  ENV TZ=Asia/Shanghai
6
 
 
 
 
 
 
 
7
  # 暴露端口
8
  EXPOSE 80
9
 
 
4
  # 设置时区环境变量
5
  ENV TZ=Asia/Shanghai
6
 
7
+ # 创建一个非 root 用户
8
+ RUN adduser -D myuser
9
+
10
+ # 切换到非 root 用户
11
+ USER librespeed
12
+
13
  # 暴露端口
14
  EXPOSE 80
15