From 0e22dad31e815340806de45c1d7ecb5e39c12d60 Mon Sep 17 00:00:00 2001 From: thisfro Date: Wed, 5 May 2021 12:33:28 +0200 Subject: [PATCH] update dockerfile yet again --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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