...

Text file src/github.com/golang-migrate/migrate/v4/Dockerfile

Documentation: github.com/golang-migrate/migrate/v4

     1FROM golang:1.16-alpine3.13 AS builder
     2ARG VERSION
     3
     4RUN apk add --no-cache git gcc musl-dev make
     5
     6WORKDIR /go/src/github.com/golang-migrate/migrate
     7
     8ENV GO111MODULE=on
     9
    10COPY go.mod go.sum ./
    11
    12RUN go mod download
    13
    14COPY . ./
    15
    16RUN make build-docker
    17
    18FROM alpine:3.13
    19
    20RUN apk add --no-cache ca-certificates
    21
    22COPY --from=builder /go/src/github.com/golang-migrate/migrate/build/migrate.linux-386 /usr/local/bin/migrate
    23RUN ln -s /usr/local/bin/migrate /migrate
    24
    25ENTRYPOINT ["migrate"]
    26CMD ["--help"]

View as plain text