linkwarden icon indicating copy to clipboard operation
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.

Open TheDarkula opened this issue 1 year ago • 2 comments
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.

TheDarkula avatar Aug 18 '24 00:08 TheDarkula

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 18 '24 00:08 CLAassistant

See also #701

tribut avatar Aug 27 '24 13:08 tribut

This is a duplicate of #688, please create a new PR for the rest of the changes. Thanks!

daniel31x13 avatar Sep 13 '24 03:09 daniel31x13