Fix docker build for latest golang images (#88)

This commit is contained in:
Adrian Macneil 2019-09-02 23:00:26 -04:00 committed by GitHub
parent 259332bf21
commit 23d48e48aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
# build image
FROM golang:1.12 as build
FROM golang:1.12-stretch as build
# required to force cgo (for sqlite driver) with cross compile
ENV CGO_ENABLED 1
@ -7,7 +7,7 @@ ENV CGO_ENABLED 1
# install database clients
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
mysql-client \
default-mysql-client \
postgresql-client \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*