mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2025-01-07 18:00:18 +01:00
ISSUE-313
This commit is contained in:
parent
7b00a41d49
commit
3bad0912c4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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}" \
|
||||
.
|
||||
|
|
Loading…
Reference in a new issue