Add missing Dockerfile
This commit is contained in:
parent
88087e0338
commit
62d3ed3a56
1 changed files with 11 additions and 0 deletions
11
cmd/rove/Dockerfile
Normal file
11
cmd/rove/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM golang:latest
|
||||
LABEL maintainer="Marc Di Luzio <marc.diluzio@gmail.com>"
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
|
||||
RUN go build -o rove -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=$(git describe --always --long --dirty --tags)'" cmd/rove/main.go
|
||||
|
||||
CMD [ "./rove" ]
|
||||
|
Loading…
Add table
Reference in a new issue