ISSUE-313

This commit is contained in:
Andrea Spacca 2020-06-14 19:48:51 +02:00
parent 7b00a41d49
commit 3bad0912c4
2 changed files with 2 additions and 2 deletions

View file

@ -10,6 +10,8 @@ ADD . /go/src/github.com/dutchcoders/transfer.sh
WORKDIR /go/src/github.com/dutchcoders/transfer.sh
ENV GO111MODULE=on
ENV GOOS=${GOOS}
ENV GOARCH=${GOARCH}
# build & install server
RUN go get -u ./... && CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-w -extldflags "-static"' -o /go/bin/transfersh github.com/dutchcoders/transfer.sh

View file

@ -13,10 +13,8 @@ for arch in ${verified_build_architectures[@]}; do
BASE_IMAGE_PREFIX="${base_image_prefix_map[${arch}]}"
docker build \
--build-arg BASE_IMAGE_PREFIX=${BASE_IMAGE_PREFIX} \
--build-arg GOOS=linux \
--build-arg GOARCH=${arch} \
--build-arg ARCH=${arch} \
--file $DOCKERFILE_PATH \
--tag "${IMAGE_NAME}-${arch}" \
.