47 lines
1.3 KiB
Docker
47 lines
1.3 KiB
Docker
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
|
|
|
|
COPY entrypoint.sh /etc/webhook/entrypoint.sh
|
|
RUN chmod +x /etc/webhook/entrypoint.sh
|
|
|
|
COPY assets-hook.sh /etc/webhook/assets-hook.sh
|
|
RUN chmod +x /etc/webhook/assets-hook.sh
|
|
|
|
COPY assets-init.sh /etc/webhook/assets-init.sh
|
|
RUN chmod +x /etc/webhook/assets-init.sh
|
|
|
|
COPY programm-hook.sh /etc/webhook/programm-hook.sh
|
|
RUN chmod +x /etc/webhook/programm-hook.sh
|
|
|
|
COPY programm-init.sh /etc/webhook/programm-init.sh
|
|
RUN chmod +x /etc/webhook/programm-init.sh
|
|
|
|
COPY generate_index_html.sh /etc/webhook/generate_index_html.sh
|
|
RUN chmod +x /etc/webhook/generate_index_html.sh
|
|
|
|
WORKDIR /etc/webhook
|
|
EXPOSE 9000
|
|
|
|
ENTRYPOINT ["/etc/webhook/entrypoint.sh"]
|
|
CMD [""] |