Skip to content

Commit

Permalink
Merge pull request golang-migrate#356 from jace-ys/master
Browse files Browse the repository at this point in the history
Move migrate binary to /usr/local/bin in Dockerfile
  • Loading branch information
dhui authored Mar 15, 2020
2 parents 8e142df + 6cdebb0 commit 5cc28f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ RUN apk add --no-cache ca-certificates

COPY --from=builder /usr/local/lib/libseabolt* /lib/

COPY --from=builder /go/src/github.com/golang-migrate/migrate/build/migrate.linux-386 /migrate
COPY --from=builder /go/src/github.com/golang-migrate/migrate/build/migrate.linux-386 /usr/local/bin/migrate
RUN ln -s /usr/local/bin/migrate /migrate

ENTRYPOINT ["/migrate"]
ENTRYPOINT ["migrate"]
CMD ["--help"]

0 comments on commit 5cc28f0

Please sign in to comment.