Browse Source

Run tests before build

master
Jan-Lukas Else 4 years ago
parent
commit
2f9eede975
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Dockerfile

+ 2
- 0
Dockerfile View File

@ -1,6 +1,8 @@
FROM golang:1.14-alpine as build
RUN apk add --no-cache gcc musl-dev tzdata
ADD . /app
WORKDIR /app
RUN go test
RUN go build
FROM alpine:3.11


Loading…
Cancel
Save