db-wait/Dockerfile
CSRBot 6feb9e1e58
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
chore(deps): update dependency docker.io/library/alpine to v3.18
2023-05-18 14:05:00 +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" ]