-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marc Carmier <marc.carmier@corp.ovh.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM golang:1.15-buster as build | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y unixodbc unixodbc-dev | ||
|
||
WORKDIR /go/src/venom | ||
COPY . . | ||
RUN go build -a -installsuffix cgo -ldflags "-X github.com/ovh/venom.Version=$(git describe)" -o /go/bin ./... | ||
RUN chmod a+rx /go/bin/venom | ||
|
||
FROM debian:buster-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y unixodbc && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=build /go/bin/venom /opt/venom | ||
|
||
ENTRYPOINT ["/opt/venom"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters