From f0bb8fed65596989c6c39e902962c228e8f1eeb6 Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Wed, 21 Feb 2024 12:02:11 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/config/Doc?= =?UTF-8?q?kerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/config/Dockerfile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Sources/config/Dockerfile b/Sources/config/Dockerfile index c97a66da..d691b873 100755 --- a/Sources/config/Dockerfile +++ b/Sources/config/Dockerfile @@ -1,10 +1,13 @@ -FROM php:8.2-apache as base - -RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \ - && apt-get install -y nodejs \ - && npm install -g npm@8.5 - -WORKDIR /src -COPY . /src -RUN npm run dev +FROM php:8.2-ftp as base + +RUN docker-php-ext-install pdo pdo_mysql + +COPY . /app + +WORKDIR /var/www/html/ + EXPOSE 80 + +FROM nginx +COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=base /app/build /usr/share/nginx/html