From 0b64964dcd9abfb59ef6e5a0d39d39a84926ee40 Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Thu, 21 Mar 2024 15:19:34 +0800 Subject: [PATCH] chore(dockerfile): fix plugin paths and name --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa90e93..eca4926 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,10 +32,10 @@ RUN if [[ "$BUILDARCH" = "amd64" && "$TARGETARCH" = "arm64" ]] ; \ cd /${SERVICE_NAME}/plugins/grpc-proxy && go mod download && \ CGO_ENABLED=1 ARCH=$TARGETARCH GOARCH=$TARGETARCH GOHOSTARCH=$BUILDARCH \ CC=aarch64-linux-musl-gcc EXTRA_LDFLAGS='-extld=aarch64-linux-musl-gcc' \ - go build -buildmode=plugin -buildvcs=false -o grpc-proxy.so ./pkg; \ + go build -buildmode=plugin -buildvcs=false -o grpc-proxy.so ./ ; \ else \ cd /${SERVICE_NAME}/plugins/grpc-proxy && go mod download && \ - CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o grpc-proxy.so ./pkg; fi + CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o grpc-proxy.so ./ ; fi RUN if [[ "$BUILDARCH" = "amd64" && "$TARGETARCH" = "arm64" ]] ; \ then \ @@ -45,10 +45,10 @@ RUN if [[ "$BUILDARCH" = "amd64" && "$TARGETARCH" = "arm64" ]] ; \ cd /${SERVICE_NAME}/plugins/multi-auth && go mod download && \ CGO_ENABLED=1 ARCH=$TARGETARCH GOARCH=$TARGETARCH GOHOSTARCH=$BUILDARCH \ CC=aarch64-linux-musl-gcc EXTRA_LDFLAGS='-extld=aarch64-linux-musl-gcc' \ - go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./server; \ + go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./; \ else \ cd /${SERVICE_NAME}/plugins/multi-auth && go mod download && \ - CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./server; fi + CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./ ; fi RUN if [[ "$BUILDARCH" = "amd64" && "$TARGETARCH" = "arm64" ]] ; \ then \ @@ -58,10 +58,10 @@ RUN if [[ "$BUILDARCH" = "amd64" && "$TARGETARCH" = "arm64" ]] ; \ cd /${SERVICE_NAME}/plugins/registry && go mod download && \ CGO_ENABLED=1 ARCH=$TARGETARCH GOARCH=$TARGETARCH GOHOSTARCH=$BUILDARCH \ CC=aarch64-linux-musl-gcc EXTRA_LDFLAGS='-extld=aarch64-linux-musl-gcc' \ - go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./server; \ + go build -buildmode=plugin -buildvcs=false -o registry.so ./ ; \ else \ cd /${SERVICE_NAME}/plugins/registry && go mod download && \ - CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o multi-auth.so ./server; fi + CGO_ENABLED=1 go build -buildmode=plugin -buildvcs=false -o registry.so ./ ; fi RUN cd /${SERVICE_NAME} && \ git clone -b v2.0.12 https://github.com/lestrrat-go/jwx.git && \