mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2020-11-18 19:53:40 -08:00
ISSUE-313
This commit is contained in:
parent
7b00a41d49
commit
3bad0912c4
@ -10,6 +10,8 @@ ADD . /go/src/github.com/dutchcoders/transfer.sh
|
|||||||
WORKDIR /go/src/github.com/dutchcoders/transfer.sh
|
WORKDIR /go/src/github.com/dutchcoders/transfer.sh
|
||||||
|
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
|
ENV GOOS=${GOOS}
|
||||||
|
ENV GOARCH=${GOARCH}
|
||||||
|
|
||||||
# build & install server
|
# 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
|
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}]}"
|
BASE_IMAGE_PREFIX="${base_image_prefix_map[${arch}]}"
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg BASE_IMAGE_PREFIX=${BASE_IMAGE_PREFIX} \
|
|
||||||
--build-arg GOOS=linux \
|
--build-arg GOOS=linux \
|
||||||
--build-arg GOARCH=${arch} \
|
--build-arg GOARCH=${arch} \
|
||||||
--build-arg ARCH=${arch} \
|
|
||||||
--file $DOCKERFILE_PATH \
|
--file $DOCKERFILE_PATH \
|
||||||
--tag "${IMAGE_NAME}-${arch}" \
|
--tag "${IMAGE_NAME}-${arch}" \
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user