Playing with args and hooks for docker hub

This commit is contained in:
Sergey Bogatyrets
2019-11-20 21:56:33 +03:00
parent fefecbb342
commit 596a0180ff
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
FROM golang:latest as builder
ARG ARCH=CIDEFINED
ARG GOLANG_VERSION="1.12"
FROM $ARCH/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