diff --git a/services/motion_detector/Dockerfile b/services/motion_detector/Dockerfile
index 4f19877e62e813695af195955a3b5fae9e4324c0..db892de086529670b16a3686515e1ef2268606b7 100644
--- a/services/motion_detector/Dockerfile
+++ b/services/motion_detector/Dockerfile
@@ -1,25 +1,26 @@
-# Dockerfile for server microservice
-
 # Use the official Python image as base
-FROM --platform=linux/arm64 python:3.8-slim as build
+FROM python:3.8-slim as build
 
 # Set the working directory inside the container
 WORKDIR /app
 
+# Install system-level dependencies (if required for Python packages)
+RUN apt-get update && apt-get install -y build-essential
+
 # Copy the server code into the container
 COPY . .
 
 # Install required Python packages
-RUN pip install -r requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
 
 # Set environment variables
-ENV OR_HOST_IP=localhost
-ENV OR_PORT=9999
-ENV LOG_LEVEL=INFO
-ENV TZ=UTC
+ENV OR_HOST_IP=localhost \
+    OR_PORT=9999 \
+    LOG_LEVEL=INFO \
+    TZ=UTC
 
-# Expose the port used by the server (if needed)
-# EXPOSE <port_number>
+# Expose the port used by the server
+EXPOSE 9999
 
 # Command to run the server code
 CMD ["python", "src/motion_detection.py"]
diff --git a/services/object_recognizer/Dockerfile b/services/object_recognizer/Dockerfile
index 62fd939e1897adad8b65df34206ae6370303e00a..d8d518af7ec6ceaf32ce0aa40d2e14ef3d4b0001 100644
--- a/services/object_recognizer/Dockerfile
+++ b/services/object_recognizer/Dockerfile
@@ -1,9 +1,12 @@
 # Use the official Python image as base
-FROM --platform=linux/arm64 python:3.8-slim as build
+FROM python:3.8-slim as build
 
 # Set the working directory inside the container
 WORKDIR /app
 
+# Install system dependencies for Python packages (if needed)
+RUN apt-get update && apt-get install -y build-essential
+
 # Copy the server code into the container
 COPY . .