remove Dockerfile

This commit is contained in:
Fabricio 2018-11-17 08:55:04 -02:00
parent 495604319a
commit 2e2fbc0da0
2 changed files with 5 additions and 17 deletions

View file

@ -1,14 +0,0 @@
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

View file

@ -49,12 +49,14 @@ Manually:
git clone https://github.com/ofabricio/capture.git
cd capture
go get -d ./...
go build -o capture .
Via docker:
git clone https://github.com/ofabricio/capture.git
cd capture
docker build -t capture .
docker run --rm -v "${PWD}:/src" -e "OS=linux" capture
docker run --rm -v "${PWD}:/src" -w /src -e GOOS=darwin -e GOARCH=386 golang:latest go build -ldflags="-s -w" -o capture .
Now you have an executable binary in your folder
*Note:* you can change `GOOS=darwin` to _linux_ or _windows_