commit 8d71228c8a1b2bde481ab11ce5f3157c7da5022f
parent 2f967f41cf78fd50e664d74be33d92e49d98fc03
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Mon, 16 Feb 2026 17:45:57 +0530
Install git, python3, make, and g++
Added system dependencies for building native modules.
Diffstat:
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -1,5 +1,16 @@
FROM node:18-slim
+# Install system dependencies
+# We add git because some npm packages require it to fetch dependencies.
+# We add python3, make, and g++ because some crypto libraries used by Baileys
+# might need to compile native code.
+RUN apt-get update && apt-get install -y \
+ git \
+ python3 \
+ make \
+ g++ \
+ && rm -rf /var/lib/apt/lists/*
+
# Create app directory
WORKDIR /usr/src/app
@@ -16,4 +27,4 @@ COPY . .
EXPOSE 3000
# Start command
-CMD [ "node", "index.js" ]-
\ No newline at end of file
+CMD [ "node", "index.js" ]