2021-10-28 07:58:14 +00:00
|
|
|
FROM docker.io/library/golang:1.17-alpine3.13 AS build
|
2021-09-15 16:15:43 +00:00
|
|
|
|
2021-10-24 10:39:00 +00:00
|
|
|
ARG VERSION=latest
|
|
|
|
|
2021-09-15 16:15:43 +00:00
|
|
|
COPY . /workspace
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
RUN set -ex && \
|
|
|
|
apk update && \
|
|
|
|
apk add git make && \
|
2021-10-24 10:39:00 +00:00
|
|
|
make install VERSION=${VERSION} DESTDIR=/db-wait PREFIX=/usr
|
2021-09-15 16:15:43 +00:00
|
|
|
|
2023-05-18 12:05:00 +00:00
|
|
|
FROM docker.io/library/alpine:3.18
|
2021-09-15 16:15:43 +00:00
|
|
|
|
|
|
|
COPY --from=build /db-wait /
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/db-wait" ]
|