drone-email/Dockerfile
Markus Pesch d72bb47221
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update docker library/golang to 1.24.1-alpine3.21
2025-03-31 16:16:13 +02:00

27 lines
554 B
Docker

FROM docker.io/library/golang:1.24.1-alpine3.21 AS build
ARG GONOPROXY
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
ARG VERSION
COPY . /workspace
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make install DESTDIR=/drone-email PREFIX=/usr VERSION=${VERSION}
###############################################################################
FROM docker.io/library/alpine:3.21
RUN apk add --no-cache bash bash-completion ca-certificates tzdata
COPY --from=build /drone-email /
ENTRYPOINT [ "/usr/bin/drone-email" ]