Skip to content

Commit

Permalink
Run tests during the build step in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kukushkin committed Dec 18, 2020
1 parent 2903a99 commit c35d6e3
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 @@ -4,6 +4,7 @@ FROM golang:alpine as build
WORKDIR /go/src/github.com/p4tin/goaws

COPY . .
RUN CGO_ENABLED=0 go test ./app/...
RUN go build -o goaws app/cmd/goaws.go

# release image
Expand Down

0 comments on commit c35d6e3

Please sign in to comment.