update dockerfile yet again

This commit is contained in:
Jannis Portmann 2021-05-05 12:33:28 +02:00
parent 1c58889268
commit 0e22dad31e

View file

@ -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