fix container config

This commit is contained in:
“xHuPo” 2024-08-29 13:51:33 +08:00
parent 2c3237dcd9
commit 040f21820e
2 changed files with 7 additions and 2 deletions

View file

@ -13,5 +13,10 @@ FROM debian:stable-slim
WORKDIR /app WORKDIR /app
COPY --from=Builder /app/webhook/webhook . COPY --from=Builder /app/webhook/webhook .
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
CMD ["./webhook"] CMD ["./webhook"]

View file

@ -11,5 +11,5 @@ services:
VERBOSE: true VERBOSE: true
HOOKS: /etc/webhook/config/hooks.yaml HOOKS: /etc/webhook/config/hooks.yaml
volumes: volumes:
- ./config:/etc/webhook/config:ro - ./config:/etc/webhook/config:rw
- ./scripts:/etc/webhook/scripts:ro - ./scripts:/etc/webhook/scripts:rw