adds dockerfile
This commit is contained in:
parent
98a6ff0269
commit
f9293738c6
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
|
Loading…
Reference in a new issue