Spaces:
Running
Running
asemxin
commited on
Commit
·
8320443
1
Parent(s):
67b2006
Add pre-downloaded management panel HTML file
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -18,7 +18,12 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.Version=${VERSION
|
|
| 18 |
# Runtime stage
|
| 19 |
FROM alpine:3.22.0
|
| 20 |
|
| 21 |
-
RUN apk add --no-cache tzdata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Create non-root user for HF Spaces
|
| 24 |
RUN adduser -D -u 1000 user
|
|
|
|
| 18 |
# Runtime stage
|
| 19 |
FROM alpine:3.22.0
|
| 20 |
|
| 21 |
+
RUN apk add --no-cache tzdata curl
|
| 22 |
+
|
| 23 |
+
# Download management panel
|
| 24 |
+
RUN mkdir -p /CLIProxyAPI/panel && \
|
| 25 |
+
curl -L -o /CLIProxyAPI/panel/management.html \
|
| 26 |
+
"https://github.com/router-for-me/Cli-Proxy-API-Management-Center/releases/download/v1.2.6/management.html"
|
| 27 |
|
| 28 |
# Create non-root user for HF Spaces
|
| 29 |
RUN adduser -D -u 1000 user
|