diff options
| author | soler_j <soler_j@etna-alternance.net> | 2025-04-29 10:50:45 +0200 |
|---|---|---|
| committer | soler_j <soler_j@etna-alternance.net> | 2025-04-29 10:50:45 +0200 |
| commit | 3d143c271394a942dff5d979ffc8d2c55f1644dc (patch) | |
| tree | 7191a49baacebe7a8bbb46b82c8d8f1f96bf5f0e /Dockerfile | |
| parent | 22dc3abd0c866e4ee292a4648c3dac5cda2583cb (diff) | |
Refactor Dockerfile and bot code: remove ZeroMQ dependencies, enhance bot initialization with HTTP webhook server, and improve error handling for bot startup.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -2,12 +2,7 @@ FROM golang:1.23 AS go-builder WORKDIR /app COPY app/ . -RUN apt-get update && apt-get install -y \ - pkg-config \ - libczmq-dev \ - libzmq3-dev \ - libsodium-dev -RUN CGO_ENABLED=1 go build -o /api/app ./cmd/main.go +RUN CGO_ENABLED=0 go build -o /api/app ./cmd/main.go # Étape de compilation pour le programme C++ avec DPP FROM ubuntu:24.04 AS cpp-builder @@ -22,8 +17,6 @@ RUN apt-get update && apt-get install -y \ libopus-dev \ clang \ pkg-config \ - libczmq-dev \ - libzmq3-dev \ libsodium-dev # Clone DPP @@ -60,7 +53,6 @@ RUN apt-get update && apt-get install -y \ zlib1g \ libopus0 \ libsodium23 \ - libzmq5 \ && apt-get clean # Copie des binaires COPY --from=go-builder /api/app ./app |
