Move test into Dockerfile

This commit is contained in:
Richard Patel
2019-02-22 05:02:30 +01:00
parent 2b719ccd3f
commit 10af43c12f
2 changed files with 2 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
FROM golang:1.11.5 AS builder
ADD . /src
RUN cd /src \
&& go test . \
&& go build -o binary
FROM alpine