浏览代码

Remove explicit OS and Arch builds

This could allow multi-arch supporting using `docker buildx`
tags/v1.2.0
Steven Eksteen 4 年前
父节点
当前提交
9297c253aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Dockerfile

+ 1
- 1
Dockerfile 查看文件

@@ -12,7 +12,7 @@ WORKDIR /go/src/github.com/dutchcoders/transfer.sh
ENV GO111MODULE=on ENV GO111MODULE=on


# build & install server # build & install server
RUN go get -u ./... && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 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


FROM scratch AS final FROM scratch AS final
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>" LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"


正在加载...
取消
保存