Skip to content

Commit b71fc30

Browse files
Prometheus2677FPiety0521
authored and
FPiety0521
committed
Docker builds need to use dep to manage dependencies
1 parent db57523 commit b71fc30

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
FROM golang:1.11-alpine3.8 AS downloader
22
ARG VERSION
33

4-
RUN apk add --no-cache git gcc musl-dev
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
57

68
WORKDIR /go/src/github.com/golang-migrate/migrate
79

8-
COPY . ./
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
917

1018
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse"
1119
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"

0 commit comments

Comments
 (0)