db-wait/Dockerfile
Markus Pesch 7a0eaa6764
All checks were successful
continuous-integration/drone/push Build is passing
fix(ci): adapt .drone.yml to latest version
2021-10-24 13:16:15 +02:00

19 lines
344 B
Docker

FROM docker.io/library/golang:1.17-alpine3.14 AS build
ARG VERSION=latest
COPY . /workspace
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make install VERSION=${VERSION} DESTDIR=/db-wait PREFIX=/usr
FROM docker.io/library/alpine:3.14
COPY --from=build /db-wait /
ENTRYPOINT [ "/usr/bin/db-wait" ]