瀏覽代碼

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

# 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
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"


Loading…
取消
儲存