mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
Fix docker build for latest golang images (#88)
This commit is contained in:
parent
259332bf21
commit
23d48e48aa
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# build image
|
# 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
|
# required to force cgo (for sqlite driver) with cross compile
|
||||||
ENV CGO_ENABLED 1
|
ENV CGO_ENABLED 1
|
||||||
|
|
@ -7,7 +7,7 @@ ENV CGO_ENABLED 1
|
||||||
# install database clients
|
# install database clients
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
mysql-client \
|
default-mysql-client \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue