From 343f79735cba1b3564056d556cb500afaedaa9a3 Mon Sep 17 00:00:00 2001
From: KADDOUR Sidi Mohammed <sidi-mohammed.kaddour@inria.fr>
Date: Fri, 20 Dec 2024 14:11:47 +0100
Subject: [PATCH] update readme.md

---
 services/camera/Dockerfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/services/camera/Dockerfile b/services/camera/Dockerfile
index 092db59..dbb7d5b 100644
--- a/services/camera/Dockerfile
+++ b/services/camera/Dockerfile
@@ -1,14 +1,17 @@
 # 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 client 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 with default values
 ENV CAMERA="false" \
@@ -21,4 +24,4 @@ ENV CAMERA="false" \
 # EXPOSE <port_number>
 
 # Command to run the client code
-CMD ["python", "src/camera.py"]
+CMD ["python", "src/camera.py"]
\ No newline at end of file
-- 
GitLab