summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsoler_j <soler_j@etna-alternance.net>2025-04-29 03:57:44 +0200
committersoler_j <soler_j@etna-alternance.net>2025-04-29 03:57:44 +0200
commit6ccd5f23c68bf6d8eb212e4c0cb3b887fff993a8 (patch)
tree04ce0804bb914764751c5c5fc278282267368760 /Dockerfile
parente3a3437f65b4470b8042a37ccd48f399b250a77b (diff)
Implement multiple code changes for optimization and refactoring
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 13 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 804cd4b..a8e9c9c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -55,17 +55,24 @@ FROM ubuntu:24.04
WORKDIR /app
# Install runtime deps
-RUN apt-get update && apt-get install -y libssl3 zlib1g libopus0 && apt-get clean
-
+RUN apt-get update && apt-get install -y \
+ libssl3 \
+ zlib1g \
+ libopus0 \
+ libsodium23 \
+ libzmq5 \
+ && apt-get clean
# Copie des binaires
-COPY --from=go-builder /api ./api
-COPY --from=cpp-builder /src/build/discord-bot ./bot/build/discord-bot
+COPY --from=go-builder /api/app ./app
+COPY --from=cpp-builder /src/build/discord-bot ./discord-bot
COPY --from=cpp-builder /usr/local/lib/ /usr/local/lib/
# Make sure executables are runnable
-RUN chmod +x ./api/app ./bot/build/discord-bot
+RUN chmod +x ./app ./discord-bot
# Pour être sûr que libdpp.so soit trouvée
ENV LD_LIBRARY_PATH=/usr/local/lib
-ENTRYPOINT ["./api/app"]
+EXPOSE 2030
+
+ENTRYPOINT ["./app"]