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