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
2
2
ARG VERSION
3
3
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
7
5
8
6
WORKDIR /go/src/github.com/golang-migrate/migrate
9
7
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 . ./
17
9
10
+ ENV GO111MODULE=on
18
11
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse"
19
12
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"
20
13
21
14
RUN go build -a -o build/migrate.linux-386 -ldflags="-X main.Version=${VERSION}" -tags "$DATABASES $SOURCES" ./cli
22
15
23
- FROM alpine:3.7
16
+ FROM alpine:3.8
24
17
25
18
RUN apk add --no-cache ca-certificates
26
19
You can’t perform that action at this time.
0 commit comments