File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.10 -alpine3.7 AS downloader
1+ FROM golang:1.11 -alpine3.8 AS downloader
22ARG VERSION
33
4- RUN apk add --no-cache git gcc musl-dev curl
5-
6- RUN curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && chmod +x /usr/local/bin/dep
4+ RUN apk add --no-cache git gcc musl-dev
75
86WORKDIR /go/src/github.com/golang-migrate/migrate
97
10- COPY Gopkg.toml Gopkg.lock ./
11- RUN dep ensure -vendor-only
12-
13- COPY *.go ./
14- COPY cli ./cli
15- COPY database ./database
16- COPY source ./source
8+ COPY . ./
179
10+ ENV GO111MODULE=on
1811ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse"
1912ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"
2013
2114RUN go build -a -o build/migrate.linux-386 -ldflags="-X main.Version=${VERSION}" -tags "$DATABASES $SOURCES" ./cli
2215
23- FROM alpine:3.7
16+ FROM alpine:3.8
2417
2518RUN apk add --no-cache ca-certificates
2619
You can’t perform that action at this time.
0 commit comments