mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-15 03:04:19 +01:00
Added the new webhook container
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
repository: [docker2mqtt, gandi, go-ipfs, http-tunnel, ipfs-cluster, mopidy, piwigo-souvenirs, restic-auto, restic-rest, shairport-sync, slack-eraser, snapserver, telegraf]
|
||||
repository: [webhook, docker2mqtt, gandi, go-ipfs, http-tunnel, ipfs-cluster, mopidy, piwigo-souvenirs, restic-auto, restic-rest, shairport-sync, slack-eraser, snapserver, telegraf]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
15
webhook/Dockerfile
Normal file
15
webhook/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM golang:alpine3.11 AS build
|
||||
WORKDIR /go/src/github.com/adnanh/webhook
|
||||
RUN apk add --update -t build-deps curl libc-dev gcc libgcc jq \
|
||||
&& DOWNLOAD_URL=$(curl -s https://api.github.com/repos/adnanh/webhook/releases/latest | jq -r '.tarball_url') \
|
||||
&& curl -L --silent -o webhook.tgz ${DOWNLOAD_URL} \
|
||||
&& tar -xzf webhook.tgz --strip 1 \
|
||||
&& go get -d \
|
||||
&& go build -o /usr/local/bin/webhook
|
||||
|
||||
FROM alpine:3.11
|
||||
COPY --from=build /usr/local/bin/webhook /usr/local/bin/webhook
|
||||
WORKDIR /etc/webhook
|
||||
VOLUME ["/etc/webhook"]
|
||||
EXPOSE 9000
|
||||
ENTRYPOINT ["/usr/local/bin/webhook"]
|
||||
Reference in New Issue
Block a user