Spaces:
Sleeping
Sleeping
Commit ·
361422a
1
Parent(s): 8015a64
Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
|
@@ -13,6 +13,16 @@ RUN apk add --no-cache curl
|
|
| 13 |
RUN git clone https://github.com/1005281342/user-manager.git
|
| 14 |
RUN ls -la
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# 设置 BINDIR 环境变量
|
| 17 |
ENV BINDIR=./user-manager/bin/
|
| 18 |
|
|
@@ -20,6 +30,9 @@ ENV BINDIR=./user-manager/bin/
|
|
| 20 |
RUN curl -sf https://raw.githubusercontent.com/livebud/bud/main/install.sh | sh
|
| 21 |
RUN ls -la
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# 安装依赖
|
| 24 |
WORKDIR user-manager
|
| 25 |
RUN ls -la
|
|
|
|
| 13 |
RUN git clone https://github.com/1005281342/user-manager.git
|
| 14 |
RUN ls -la
|
| 15 |
|
| 16 |
+
|
| 17 |
+
# 切换到管理员用户
|
| 18 |
+
USER root
|
| 19 |
+
|
| 20 |
+
# 安装依赖
|
| 21 |
+
RUN apk add --no-cache curl sudo
|
| 22 |
+
|
| 23 |
+
# 安装 Bud
|
| 24 |
+
RUN curl -sf https://raw.githubusercontent.com/livebud/bud/main/install.sh | sudo sh
|
| 25 |
+
|
| 26 |
# 设置 BINDIR 环境变量
|
| 27 |
ENV BINDIR=./user-manager/bin/
|
| 28 |
|
|
|
|
| 30 |
RUN curl -sf https://raw.githubusercontent.com/livebud/bud/main/install.sh | sh
|
| 31 |
RUN ls -la
|
| 32 |
|
| 33 |
+
# 切换回普通用户
|
| 34 |
+
USER 1000
|
| 35 |
+
|
| 36 |
# 安装依赖
|
| 37 |
WORKDIR user-manager
|
| 38 |
RUN ls -la
|