2021-02-28 09:43:41 +00:00
|
|
|
FROM golang:1.15-alpine3.13 as builder
|
2019-07-30 07:51:20 +00:00
|
|
|
MAINTAINER Thomas Maier <contact@thomas-maier.net>
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
COPY . /build
|
|
|
|
WORKDIR /build
|
|
|
|
RUN GOOS=linux GOARCH=amd64 go build
|
|
|
|
|
2021-02-28 09:43:41 +00:00
|
|
|
FROM alpine:3.13
|
2019-07-30 07:51:20 +00:00
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
COPY --from=builder /build/xmpp-webhook /xmpp-webhook
|
|
|
|
RUN adduser -D -g '' xmpp-webhook
|
|
|
|
USER xmpp-webhook
|
|
|
|
ENV XMPP_ID="" \
|
|
|
|
XMPP_PASS="" \
|
2021-02-28 09:49:40 +00:00
|
|
|
XMPP_RECIPIENTS=""
|
2019-07-30 07:51:20 +00:00
|
|
|
EXPOSE 4321
|
|
|
|
CMD ["/xmpp-webhook"]
|