Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akolosova/hw6 #1191

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Akolosova/hw6 #1191

wants to merge 3 commits into from

Conversation

alisaorange
Copy link

No description provided.

@@ -0,0 +1,10 @@
FROM php:8.2-fpm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У Вас консольное приложение. Ему FPM не нужен.


WORKDIR /var/www/application.local

CMD ["php-fpm"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вместо запуска FPM нужно сделать контейнер с сервером, который при старте сразу запустится.

@@ -0,0 +1,2 @@
.idea/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если Вы в корневом .gitignore указали папку без '/' перед ней, то она будет игнорироваться во всех подпапках. Можно не повторять.

…"php", "-S", "0.0.0.0:8000", "-t", "/var/www/application.local"] в Dockerfile, также вместо него добавляла

    command: php /var/www/application.local/app.php server в docker-compose.yaml , в обоих случаях одинаковая ошибка.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants