fix: 修改 Dockerfile 工作目录

This commit is contained in:
nitezs 2023-09-15 09:15:24 +08:00
parent 282649aca0
commit 4e7d84499f

View File

@ -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