add interface and fix
This commit is contained in:
parent
bb46f5adc4
commit
c16ee9ca2c
13 changed files with 573 additions and 89 deletions
20
Dockerfile
20
Dockerfile
|
@ -1,11 +1,17 @@
|
|||
FROM golang:1.22-bullseye AS Builder
|
||||
ENV GOPROXY=https://goproxy.cn
|
||||
ENV CGO_ENABLED=0
|
||||
WORKDIR /app
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git && \
|
||||
git clone https://github.com/soulteary/webhook.git && \
|
||||
cd webhook && \
|
||||
go mod download -x && \
|
||||
go build -ldflags "-w -s" -o webhook .
|
||||
|
||||
FROM debian:stable-slim
|
||||
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
netbase \
|
||||
&& rm -rf /var/lib/apt/lists/ \
|
||||
&& apt-get autoremove -y && apt-get autoclean -y
|
||||
ADD webhook .
|
||||
COPY --from=Builder /app/webhook/webhook .
|
||||
|
||||
CMD ["./webhook"]
|
||||
CMD ["./webhook"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue