diff --git a/Dockerfile b/Dockerfile index e1175c5..752b06b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:8.0.5-fpm-buster -RUN apt-get update && apt-get -y install wget git npm curl +RUN apt-get update && apt-get -y install wget git npm curl zip RUN apt-get install -y libpq-dev \ && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ @@ -13,10 +13,16 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && RUN npm install --global yarn -COPY * ./ +RUN wget https://get.symfony.com/cli/installer -O - | bash -RUN php composer.phar update && yarn install -RUN yarn build -RUN wget https://get.symfony.com/cli/installer -O - | bash && \ +COPY . app/ -CMD /root/.symfony/bin/symfony console doctrine:migrations:migrate && /root/.symfony/bin/symfony serve --port=9999 --no-tls +WORKDIR app + +RUN ls + +RUN php ../composer.phar update +RUN yarn install && \ + yarn build + +CMD /root/.symfony/bin/symfony console doctrine:migrations:migrate && /root/.symfony/bin/symfony serve --port=9999 --no-tls \ No newline at end of file