Skip to content

Commit

Permalink
Dockerfile to build dbbench from source (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
boedy committed Mar 18, 2023
1 parent 25c8250 commit 908846b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.20-alpine3.17 AS build

WORKDIR /app

COPY . .
RUN go mod download

RUN go get -v -t -d ./...
RUN go build -v ./cmd/dbbench/...

## Deploy
FROM alpine:3.17

WORKDIR /app

COPY --from=build /app/dbbench dbbench

ENTRYPOINT ["./dbbench"]

0 comments on commit 908846b

Please sign in to comment.