From 492c285c60a62d8ebd025548ca957152b9842bbf Mon Sep 17 00:00:00 2001 From: Andre Challier Date: Wed, 27 Mar 2024 19:13:47 +0100 Subject: [PATCH] fixed even more environment variables --- webhooks-git/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/webhooks-git/Dockerfile b/webhooks-git/Dockerfile index 538900f..33605b7 100644 --- a/webhooks-git/Dockerfile +++ b/webhooks-git/Dockerfile @@ -1,8 +1,23 @@ FROM almir/webhook:latest as build FROM alpine:latest + +# install applications + RUN apk --no-cache add git openssh-client bash nano gettext +# set environment + +ARG WEBHOOK_SECRET +ENV WEBHOOK_SECRET=${WEBHOOK_SECRET} + +ARG GIT_SERVER_ASSETS +ENV GIT_SERVER_ASSETS=${GIT_SERVER_ASSETS} + +ARG GIT_SERVER_PROGRAMM +ENV GIT_SERVER_PROGRAMM=${GIT_SERVER_PROGRAMM} + +# copy binaries and scripts COPY --from=build /usr/local/bin/webhook /usr/local/bin/webhook COPY hooks.json.tmpl /etc/webhook/hooks.json.tmpl @@ -24,5 +39,6 @@ RUN chmod +x /etc/webhook/programm-init.sh WORKDIR /etc/webhook EXPOSE 9000 + ENTRYPOINT ["/etc/webhook/entrypoint.sh"] CMD [""] \ No newline at end of file