capture/Dockerfile
2018-08-24 22:14:27 -03:00

15 lines
273 B
Docker

FROM golang:alpine
COPY . /src
WORKDIR /src
RUN apk --no-cache add git && \
go get -d ./... && \
apk del git
# linux | windows | darwin
ENV OS linux
CMD GOOS=$OS GOARCH=386 go build -ldflags="-s -w" -o capture . && \
chmod -R 777 capture && \
go version