fix: update Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2023-12-09 15:00:42 +01:00
parent 98773b9fab
commit 5e1c365205
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -1,4 +1,4 @@
FROM docker.io/library/golang:1.17-alpine3.13 AS build FROM docker.io/library/golang:1.21.4-alpine3.18 AS build
ARG VERSION=latest ARG VERSION=latest
@ -11,7 +11,15 @@ RUN set -ex && \
apk add git make && \ apk add git make && \
make install VERSION=${VERSION} DESTDIR=/db-wait PREFIX=/usr make install VERSION=${VERSION} DESTDIR=/db-wait PREFIX=/usr
FROM docker.io/library/alpine:3.18 FROM docker.io/library/alpine:3.19
LABEL org.opencontainers.image.authors="Markus Pesch" \
org.opencontainers.image.description="Wait until database is ready for handling connections" \
org.opencontainers.image.documentation="https://git.cryptic.systems/volker.raschek/db-wait#db-wait" \
org.opencontainers.image.source="https://git.cryptic.systems/volker.raschek/db-wait" \
org.opencontainers.image.title="db-wait" \
org.opencontainers.image.url="https://git.cryptic.systems/volker.raschek/db-wait" \
org.opencontainers.image.vendor="Markus Pesch"
COPY --from=build /db-wait / COPY --from=build /db-wait /