Ignoring digested assets by git and Docker

almirsarajcic

almirsarajcic

Created 6 months ago

If you’re testing releases locally with MIX_ENV=prod, you might notice git and Docker don’t ignore your digested assets.

You can solve this by adding a few lines to your .gitignore and .dockerignore files.

# Ignore assets that are produced by build tools.
/assets/node_modules/
/priv/static/assets/
/priv/static/**/*-????????????????????????????????.*
/priv/static/**/*.gz

Details: https://github.com/phoenixframework/phoenix/pull/5854.