Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
|
@@ -5,7 +5,7 @@ RUN apk add --no-cache git ca-certificates wget
|
|
| 5 |
|
| 6 |
WORKDIR /src
|
| 7 |
|
| 8 |
-
ARG REPO_URL=https://github.com/
|
| 9 |
ARG REPO_REF=main
|
| 10 |
RUN git clone --depth 1 --branch "${REPO_REF}" "${REPO_URL}" .
|
| 11 |
|
|
@@ -18,8 +18,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build \
|
|
| 18 |
-ldflags="-s -w -X 'main.Version=${VERSION}' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" \
|
| 19 |
-o /out/CLIProxyAPI ./cmd/server/
|
| 20 |
|
| 21 |
-
RUN wget https://github.com/AmethystDev-Labs/Cli-Proxy-API-Management-Center/releases/download/v1.0.3/management.html /out/management.html
|
| 22 |
-
|
| 23 |
FROM alpine:3.22.0
|
| 24 |
RUN apk add --no-cache tzdata ca-certificates
|
| 25 |
|
|
@@ -27,7 +25,6 @@ WORKDIR /CLIProxyAPI
|
|
| 27 |
|
| 28 |
COPY --from=builder /out/CLIProxyAPI ./CLIProxyAPI
|
| 29 |
COPY --from=builder /src/config.example.yaml ./config.example.yaml
|
| 30 |
-
COPY --from=builder /out/management.html ./static/management.html
|
| 31 |
|
| 32 |
EXPOSE 8317
|
| 33 |
ENV TZ=Asia/Shanghai
|
|
|
|
| 5 |
|
| 6 |
WORKDIR /src
|
| 7 |
|
| 8 |
+
ARG REPO_URL=https://github.com/router-for-me/CLIProxyAPI.git
|
| 9 |
ARG REPO_REF=main
|
| 10 |
RUN git clone --depth 1 --branch "${REPO_REF}" "${REPO_URL}" .
|
| 11 |
|
|
|
|
| 18 |
-ldflags="-s -w -X 'main.Version=${VERSION}' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" \
|
| 19 |
-o /out/CLIProxyAPI ./cmd/server/
|
| 20 |
|
|
|
|
|
|
|
| 21 |
FROM alpine:3.22.0
|
| 22 |
RUN apk add --no-cache tzdata ca-certificates
|
| 23 |
|
|
|
|
| 25 |
|
| 26 |
COPY --from=builder /out/CLIProxyAPI ./CLIProxyAPI
|
| 27 |
COPY --from=builder /src/config.example.yaml ./config.example.yaml
|
|
|
|
| 28 |
|
| 29 |
EXPOSE 8317
|
| 30 |
ENV TZ=Asia/Shanghai
|