3 ms·
If you run the above docker command, which is directly from the docs, it copies everything inside of your current working directory. Not just PHP files.
by huimang 2y ago
If you run the above docker command, which is directly from the docs, it copies everything inside of your current working directory. Not just PHP files.
- withinboredom 2y agoThat docker command isn't "copying" anything; it's mounting, and I really hope people aren't doing that in production. There's a separate section on running in production.
- notpushkin 2y agoProduction deployment guide also suggests copying everything (`COPY . /app/public`). https://frankenphp.dev/docs/production/ https://frankenphp.dev/docs/production/
- floflophp 2y agoYour .dockerignore is supposed to filter out for you. In the Symfony default implementation, you have this file you can use: https://github.com/dunglas/symfony-docker/blob/main/.dockerignore https://github.com/dunglas/symfony-docker/blob/main/.dockeri...