db-wait/Dockerfile
CSRBot 15f254b24c
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update dependency docker.io/library/alpine to v3.18
2023-05-18 16:23:09 +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.18
COPY --from=build /db-wait /
ENTRYPOINT [ "/usr/bin/db-wait" ]