Reduce image size by chowning specific directories
Reduce image size by chowning specific directories

Not the whole app folder needs to be writable - tmp, log and public (for asset precompilation) should be enough.

Applications can always make more directories writable in their Dockerfile.

Chowning the whole app folder marks all files as changed which doubles the amount of space the application takes.

finnlabs/rails-docker,finnlabs/rails-docker