From fff97cb769e8f72834696b447ee6659dafcc534d Mon Sep 17 00:00:00 2001
From: Julian PEREZ-RAMIREZ <julian.perez-ramirez@imt-atlantique.net>
Date: Sun, 23 Feb 2025 12:44:24 +0100
Subject: [PATCH] adding dockerfile to manage symfony dependencies

---
 compose.yaml       | 5 ++++-
 symfony.dockerfile | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/compose.yaml b/compose.yaml
index 62d271e..0e9ab21 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -12,7 +12,10 @@ services:
       - app
 
   app:
-    image: php:8.2-fpm
+    image: php_composer
+    build:
+      context: .
+      dockerfile: symfony.dockerfile
     container_name: symfony_app
     working_dir: /var/www
     volumes:
diff --git a/symfony.dockerfile b/symfony.dockerfile
index 00cf9f1..a773a2d 100644
--- a/symfony.dockerfile
+++ b/symfony.dockerfile
@@ -1,5 +1,7 @@
+# Use official PHP-FPM image
 FROM php:8.2-fpm
 
+# Set working directory inside the container
 WORKDIR /var/www
 
 # Install required system dependencies
-- 
GitLab