2023-05-18 11:50:51 +00:00
|
|
|
FROM docker.io/library/golang:1.20.4-alpine3.16 AS build
|
2022-06-27 19:42:59 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
2022-11-16 23:31:48 +00:00
|
|
|
FROM docker.io/library/alpine:3.17
|
2022-06-27 19:42:59 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache bash bash-completion ca-certificates tzdata
|
|
|
|
|
|
|
|
COPY --from=build /drone-email /
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/drone-email" ]
|