From 862012b36b0685171c401d18cef9bb95d4b35975 Mon Sep 17 00:00:00 2001 From: Rayan Levert Date: Sat, 17 Aug 2024 08:36:57 +0200 Subject: [PATCH] Docker : using php-cli instead of FPM --- Dockerfile | 6 +++--- docker-compose.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 876f8b0..60523dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM composer:2.6.5 AS composer -FROM php:8.3-fpm +FROM composer:2.7.7 AS composer +FROM php:8.3-cli LABEL maintainer="Rayan Levert " @@ -21,4 +21,4 @@ VOLUME ["/app"] # Composer COPY --from=composer /usr/bin/composer /usr/local/bin/composer -CMD ["php-fpm"] \ No newline at end of file +CMD ["php"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b6c8247..a8bf01f 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,9 @@ -version: '2' - services: - app: + dotenv: build: . restart: 'no' + tty: true + stdin_open: true working_dir: /app volumes: - .:/app