linkwarden
linkwarden copied to clipboard
Created a multi-stage Dockerfile, shrunk the image to 2.78 GB, added sharp for image optimisation, updated the browsers list, switched to a production build, updated the .dockerignore.
trafficstars
This reduces the image size from 4.36 GB to 2.78 GB.
With this suggestion:
Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
I added the sharp package.
There was a browserslist warning:
#19 48.93 Browserslist: caniuse-lite is outdated. Please run:
#19 48.93 npx browserslist@latest --update-db
#19 48.93 Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
So, I ran npx update-browserslist-db@latest, as the mentioned command is outdated.
See also #701
This is a duplicate of #688, please create a new PR for the rest of the changes. Thanks!