Skip to content

Commit

Permalink
install deps when building docker
Browse files Browse the repository at this point in the history
install deps when building docker
  • Loading branch information
notnmeyer committed Oct 22, 2023
1 parent 425bff7 commit df7b82e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ENV CGO_ENABLED=0 \
WORKDIR /build
COPY *.go .
COPY go.mod .
RUN go mod tidy
RUN go build -o dist/mockpi ./main.go

FROM scratch
Expand Down

0 comments on commit df7b82e

Please sign in to comment.