adds dockerfile

This commit is contained in:
Fabricio 2018-07-23 18:49:48 -03:00
parent 98a6ff0269
commit f9293738c6

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM golang:latest
COPY . /src
WORKDIR /src
RUN go get -d ./...
ENV OS linux # linux | windows | darwin
CMD GOOS=$OS GOARCH=386 go build -ldflags="-s -w" -o capture . && \
chmod -R 777 capture