Add sqlite to teamspeak webhook and add "Backup" to servername
This commit is contained in:
parent
4dbec53d30
commit
1ddf34690c
5 changed files with 40 additions and 7 deletions
22
playbooks/roles/teamspeak_fallback/files/Dockerfile
Normal file
22
playbooks/roles/teamspeak_fallback/files/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
FROM golang:alpine AS builder
|
||||
|
||||
ENV WEBHOOK_VERSION 2.8.1
|
||||
WORKDIR /go/src/github.com/adnanh/webhook
|
||||
|
||||
RUN apk add --update --no-cache -t build-deps curl gcc libc-dev libgcc
|
||||
RUN curl -L -o webhook.tar.gz "https://github.com/adnanh/webhook/archive/${WEBHOOK_VERSION}.tar.gz" && \
|
||||
tar -xzf webhook.tar.gz --strip 1 && \
|
||||
go get -d && \
|
||||
go build -ldflags="-s -w" -o /usr/local/bin/webhook
|
||||
|
||||
|
||||
FROM alpine:3.20.1
|
||||
|
||||
RUN apk add --update --no-cache curl jq sqlite
|
||||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook
|
||||
|
||||
WORKDIR /config
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/webhook"]
|
||||
CMD ["-verbose", "-hooks=/config/hooks.yml"]
|
Loading…
Add table
Add a link
Reference in a new issue