summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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