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