Compare commits
5 commits
holzi1005-
...
main
Author | SHA1 | Date | |
---|---|---|---|
76921098e9 | |||
eac052e2f6 | |||
2be1e42b06 | |||
8aeadefaed | |||
f1189e2d21 |
2 changed files with 0 additions and 68 deletions
|
@ -1,39 +0,0 @@
|
|||
FROM alpine:3.20
|
||||
|
||||
ARG VERSION
|
||||
|
||||
LABEL version="${VERSION}" \
|
||||
Maintainer="H2 invent GmbH" \
|
||||
Description="Webhook Server" \
|
||||
org.opencontainers.version="${VERSION}" \
|
||||
org.opencontainers.image.title="Webhook Server" \
|
||||
org.opencontainers.image.vendor="H2 invent GmbH" \
|
||||
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
|
||||
org.opencontainers.image.documentation="https://h2-invent.com" \
|
||||
org.opencontainers.image.url="https://h2-invent.com"
|
||||
|
||||
RUN apk --no-cache add \
|
||||
git \
|
||||
curl \
|
||||
jq \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN addgroup -S webhook \
|
||||
&& adduser -S webhook -G webhook
|
||||
|
||||
WORKDIR /opt/webhook
|
||||
|
||||
RUN wget https://github.com/adnanh/webhook/releases/download/${VERSION}/webhook-linux-amd64.tar.gz -O artifact.tar.gz \
|
||||
&& tar --strip-components=1 -xvzf artifact.tar.gz \
|
||||
&& rm artifact.tar.gz
|
||||
|
||||
RUN echo "- id: whoami-webhook" > hooks.yaml \
|
||||
&& echo " execute-command: 'whoami'" >> hooks.yaml
|
||||
|
||||
USER webhook
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
HEALTHCHECK --timeout=4s CMD curl --silent --fail http://127.0.0.1:9000/ || exit 1
|
||||
|
||||
CMD [ "./webhook", "-hooks", "hooks.yaml", "-verbose" ]
|
|
@ -1,29 +0,0 @@
|
|||
ARG NODE_IMAGE_VERSION=23-alpine
|
||||
FROM node:${NODE_IMAGE_VERSION}
|
||||
|
||||
ARG VERSION
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
RUN chown -R node:node /opt/app
|
||||
|
||||
# Allow node to bind to port 80
|
||||
RUN apk update && apk add libcap
|
||||
|
||||
USER node
|
||||
|
||||
RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.tar.gz -O artifact.tar.gz \
|
||||
&& tar --strip-components=1 -xvzf artifact.tar.gz \
|
||||
&& rm artifact.tar.gz
|
||||
|
||||
RUN wget https://github.com/H2-invent/materialWhitebophir/archive/master.tar.gz -O artifact.tar.gz \
|
||||
&& tar --strip-components=1 -xvzf artifact.tar.gz \
|
||||
&& mv fonts client-data/fonts/ \
|
||||
&& mv css/board.css client-data/board.css \
|
||||
&& rm artifact.tar.gz
|
||||
|
||||
RUN npm ci --production
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server/server.js"]
|
Loading…
Add table
Reference in a new issue