Playing with args and hooks for docker hub
This commit is contained in:
parent
fefecbb342
commit
596a0180ff
@ -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
|
WORKDIR /go/src/github.com/olebedev/socks5
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
|
||||||
|
7
hooks/build
Normal file
7
hooks/build
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for i in arm32v6 arm32v6 arm64v8 amd64;
|
||||||
|
do
|
||||||
|
docker build --build-arg ARCH=$i -t serjs/test:$i .
|
||||||
|
# $IMAGE_NAME .
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user