Improve Drone build time

This commit is contained in:
Jan-Lukas Else 2021-12-28 12:54:08 +01:00
parent e27cbf7b40
commit 4099f6c56c
1 changed files with 4 additions and 4 deletions

View File

@ -11,14 +11,14 @@ ADD templates/ /app/templates/
ADD leaflet/ /app/leaflet/
ADD dbmigrations/ /app/dbmigrations/
FROM buildbase as test
RUN go test -cover ./...
FROM buildbase as build
RUN go build -ldflags '-w -s' -o GoBlog
FROM build as test
RUN go test -cover ./...
FROM alpine:3.15 as base
WORKDIR /app