mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3296] feat: smaller container images #4335
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3296
Author: @AndrewBastin
Created: 8/27/2023
Status: 🔄 Open
Base:
release/2023.12.3← Head:experiment/backend-deploy📝 Commits (3)
2c13f31feat: update docker setup to have smaller container sizes6131825refactor: reintroduce pnpm into the docker containersf8e3fbbchore: reintroduce alpine 3.19 for backend images📊 Changes
2 files changed (+22 additions, -8 deletions)
View changed files
📝
packages/hoppscotch-backend/package.json(+5 -0)📝
prod.Dockerfile(+17 -8)📄 Description
This PR intends to reduce the size of the container images (mostly the backend container and because of that, the new AIO container). In my builds locally, the container image sizes have around 90% size reduction.
Description
This PR uses the
pnpm deploycommand to isolate the backend build into a full independent package which place in a separate fresh build stage to run.A big thing to note here is to reduce size, the new backend container (and hence the AIO container) does not have pnpm, so you will need to usenpmandnpxfor any package relating stuff (for example, DB migration runs).[
pnpmis now available.]Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
application/jsonrequest body #4757