diff --git a/Dockerfile b/Dockerfile index 374494a..9f1a96a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o sub2clash FROM alpine:latest +# 设置工作目录 +WORKDIR /app + # 从 builder 镜像中复制出编译好的二进制文件 COPY --from=builder /app/sub2clash /app/sub2clash