diff --git a/Dockerfile-crossplatform b/Dockerfile-crossplatform index 2dc4f09..8c24293 100644 --- a/Dockerfile-crossplatform +++ b/Dockerfile-crossplatform @@ -12,16 +12,16 @@ RUN mkdir /${PROJECT} && mkdir ${OUTDIR} COPY . /${PROJECT} WORKDIR /${PROJECT} -env GOBUILD="go build -ldflags=-s -tags ${GOTAG} -o ${OUTDIR}/${PROJECT}_${GOTAG}" ./cmd/dnsmonster +env GOBUILD="go build -ldflags=-s -tags ${GOTAG} -o ${OUTDIR}/${PROJECT}_${GOTAG}" # Linux RUN echo "Building Linux binaries" RUN export GOOS=linux && export CGO_ENABLED=1 && \ - export GOARCH=amd64 && CC="zig cc -target x86_64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin . && \ - export GOARCH=386 && CC="zig cc -target i386-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin . && \ - export GOARCH=arm && CC="zig cc -target arm-${GOOS}-musleabihf" ${GOBUILD}_${GOOS}_${GOARCH}.bin . && \ - export GOARCH=arm64 && CC="zig cc -target aarch64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin . && \ - export GOARCH=riscv64 && CC="zig cc -target riscv64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin . + export GOARCH=amd64 && CC="zig cc -target x86_64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin ./cmd/dnsmonster && \ + export GOARCH=386 && CC="zig cc -target i386-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin ./cmd/dnsmonster && \ + export GOARCH=arm && CC="zig cc -target arm-${GOOS}-musleabihf" ${GOBUILD}_${GOOS}_${GOARCH}.bin ./cmd/dnsmonster && \ + export GOARCH=arm64 && CC="zig cc -target aarch64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin ./cmd/dnsmonster && \ + export GOARCH=riscv64 && CC="zig cc -target riscv64-${GOOS}-musl" ${GOBUILD}_${GOOS}_${GOARCH}.bin ./cmd/dnsmonster # MIPS and PPC are pending patches from Zig #10979, #11829 # Windows