summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsoler_j <soler_j@etna-alternance.net>2025-04-29 10:50:45 +0200
committersoler_j <soler_j@etna-alternance.net>2025-04-29 10:50:45 +0200
commit3d143c271394a942dff5d979ffc8d2c55f1644dc (patch)
tree7191a49baacebe7a8bbb46b82c8d8f1f96bf5f0e /Dockerfile
parent22dc3abd0c866e4ee292a4648c3dac5cda2583cb (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--Dockerfile10
1 files changed, 1 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index a8e9c9c..bfc5949 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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