fix(docker): prune devDependencies properly
What does this PR do? (Please give us a brief description of what this PR does.)
The pnpm i --prod --frozen-lockfile
step in the Dockerfile doesn't actually prune devDependencies
. This PR makes it so that node_modules
folders are deleted before reinstalling production dependencies.
This reduces the image size by ~0.54 GB.
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this pull request -
I have made sure to run pnpm run format
before submitting this pull request
If this merge request makes changes to the Firefish API, please update docs/api-change.md
-
I updated the document / This merge request doesn't include API changes
Edited by Ryan Cao