Skip to content

Commit

Permalink
Back out unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhui committed Oct 19, 2022
1 parent dc5f04f commit 2ea5ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
FROM golang:1.19-alpine3.16 AS envsetup
FROM golang:1.19-alpine3.16 AS builder
ARG VERSION

RUN apk add --no-cache git gcc musl-dev make
WORKDIR /go/src/github.com/golang-migrate/migrate
ENV GO111MODULE=on

FROM envsetup AS deps
COPY go.mod go.sum ./
RUN go mod download

FROM deps AS builder
COPY . ./
RUN make build-docker

FROM alpine:3.16 as image
FROM alpine:3.16
RUN apk add --no-cache ca-certificates

COPY --from=builder /go/src/github.com/golang-migrate/migrate/build/migrate.linux-386 /usr/local/bin/migrate
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module github.com/golang-migrate/migrate/v4

go 1.19

require (
cloud.google.com/go/spanner v1.34.1
cloud.google.com/go/storage v1.23.0
Expand Down Expand Up @@ -163,3 +161,5 @@ require (
modernc.org/token v1.0.0 // indirect
modernc.org/zappy v1.0.0 // indirect
)

go 1.18

0 comments on commit 2ea5ddc

Please sign in to comment.