Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It literally says “copy your PHP files” note the PHP part. It doesn’t say copy all your secrets and git history too.


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.


That 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.


Production deployment guide also suggests copying everything (`COPY . /app/public`).

https://frankenphp.dev/docs/production/


Your .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/.dockeri...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: