github.com/eatigo/migrate@v3.0.2-0.20210729130915-7610befb1b6b+incompatible/Dockerfile (about) 1 FROM golang:1.12.5-alpine3.9 AS downloader 2 3 RUN apk add --no-cache ca-certificates 4 RUN apk add --no-cache git gcc musl-dev 5 6 COPY . /usr/local/go/src/github.com/eatigo/migrate 7 WORKDIR /usr/local/go/src/github.com/eatigo/migrate/cli/migrate/ 8 9 ENV GO111MODULE=on 10 ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse mongodb mssql" 11 ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage godoc_vfs gitlab" 12 13 RUN go build -tags "$DATABASES $SOURCES" . 14 15 FROM alpine:3.9 16 17 RUN apk add --no-cache ca-certificates 18 19 COPY --from=downloader /usr/local/go/src/github.com/eatigo/migrate/cli/migrate/migrate /migrate 20 RUN chmod u+x migrate 21 22 ENTRYPOINT ["/migrate"] 23 CMD ["--help"]