db-wait/Dockerfile
Markus Pesch a7a8703d7f
Some checks failed
continuous-integration/drone/push Build is failing
fix: downgrade alpine image
2021-10-28 09:58:14 +02:00

19 lines
344 B
Docker

FROM docker.io/library/golang:1.17-alpine3.13 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.13
COPY --from=build /db-wait /
ENTRYPOINT [ "/usr/bin/db-wait" ]