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:
parent
76897dbf1b
commit
94b22a9679
@ -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
|
||||
|
@ -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 $@
|
Loading…
Reference in New Issue
Block a user