1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00

Fix Docker build

This commit is contained in:
DarthSim 2022-07-13 10:40:24 +06:00
parent 76897dbf1b
commit 94b22a9679
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,8 @@ ARG BUILDPLATFORM
ARG TARGETPLATFORM
COPY . .
RUN docker/go.sh build -v -ldflags "-s -w" -o /usr/local/bin/imgproxy
RUN docker/fix-go.sh
RUN go build -v -ldflags "-s -w" -o /usr/local/bin/imgproxy
# ==================================================================================================
# Final image

View File

@ -11,7 +11,7 @@ if [[ $BUILDPLATFORM != $TARGETPLATFORM ]]; then
;;
arm64 | "arm64/v8" | "linux/arm64" | "linux/arm64/v8")
BUILDPLATFORM="arm64"
BUILD_ARCH="arm64"
;;
*)
@ -48,5 +48,3 @@ if [[ $BUILDPLATFORM != $TARGETPLATFORM ]]; then
export GOOS=linux
export GOARCH=$TARGET_ARCH
fi
go $@