diff --git a/apps/agent/deployment/ci-cd/Dockerfile b/apps/agent/deployment/ci-cd/Dockerfile
index aed97acf827826b3dd5f999db1694bf5a7013184..486c2766048fbdae6da6349dfc99ce2a490a4f25 100644
--- a/apps/agent/deployment/ci-cd/Dockerfile
+++ b/apps/agent/deployment/ci-cd/Dockerfile
@@ -5,7 +5,7 @@ ARG API_TOKEN
 ARG JOB_ID
 
 # Instal required software
-RUN apt update -y && apt install python3 git make build-essential wget unzip -y
+RUN apk update && apk add python3 git make alpine-sdk wget unzip
 
 # Set the working directory
 WORKDIR app
diff --git a/apps/agent/deployment/local/Dockerfile b/apps/agent/deployment/local/Dockerfile
index f61fa954c07c0bac7226090e5fa9ae55f0c162cc..08bb537db0b1da9cb8654d5374af1b6b4566e13b 100644
--- a/apps/agent/deployment/local/Dockerfile
+++ b/apps/agent/deployment/local/Dockerfile
@@ -1,6 +1,6 @@
 FROM node:18.19.1-alpine
 
-RUN apt update -y && apt install python3 git make build-essential -y
+RUN apk update && apk add python3 git make alpine-sdk
 
 WORKDIR app