From f9293738c6ce27730e23a839737e7d59330a7d49 Mon Sep 17 00:00:00 2001 From: Fabricio Date: Mon, 23 Jul 2018 18:49:48 -0300 Subject: [PATCH] adds dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..03d6f38 --- /dev/null +++ b/Dockerfile @@ -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