Dockerfile buildx changes, remove Dockerhub hooks

This commit is contained in:
Sergey Bogatyrets
2020-03-20 23:05:00 +03:00
parent fd4931ed4d
commit 1c2d4e53a2
3 changed files with 1 additions and 18 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
ARG ARCH=CIDEFINED
ARG GOLANG_VERSION="1.12"
FROM $ARCH/golang:$GOLANG_VERSION-alpine as builder
FROM --platform=$BUILDPLATFORM golang:$GOLANG_VERSION-alpine as builder
WORKDIR /go/src/github.com/olebedev/socks5
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5