Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnymilton committed May 5, 2024
1 parent efc1274 commit e29cd95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ COPY /docker/app/php/www.conf /usr/local/etc/php-fpm.d/www.conf

RUN rm /usr/local/etc/php-fpm.d/zz-docker.conf && \
mkdir /var/run/php/ && chown www-data:www-data /var/run/php/ && \
mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini && \
rm /etc/nginx/sites-enabled/default

COPY --chown=www-data:www-data /backend /application

Expand All @@ -37,4 +38,6 @@ RUN composer install --no-dev --optimize-autoloader --no-scripts

COPY /docker/app/entrypoint.sh /entrypoint.sh

EXPOSE 80

ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker/app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ composer dump-env prod
bin/console cache:clear
bin/console doctrine:database:create --if-not-exists -n
bin/console doctrine:migrations:migrate -n --allow-no-migration
bin/console messenger:consume async --time-limit=3600
php-fpm
nginx
bin/console messenger:consume async --time-limit=3600
bash

0 comments on commit e29cd95

Please sign in to comment.