drone-email/Dockerfile
CSRBot 042ee78a07
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build encountered an error
chore(deps): update dependency docker.io/library/golang to v1.20.0
2023-02-01 23:41:32 +01:00

27 lines
554 B
Docker

FROM docker.io/library/golang:1.20.0-alpine3.16 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.17
RUN apk add --no-cache bash bash-completion ca-certificates tzdata
COPY --from=build /drone-email /
ENTRYPOINT [ "/usr/bin/drone-email" ]