Replies: 1 comment
-
Ok this reduces it to 100 MB. exec fastapi run --workers 1 app/main.py ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Here is my backend
Dockerfile
:https://github.com/nemanjam/githubcities/blob/main/backend/Dockerfile
Description
Run the backend container, too high RAM usage.
Operating System
Linux
Operating System Details
Alpine, Debian Linux in Docker.
Python Version
python:3.12.10-alpine3.22
Additional Context
I am using the original
Dockerfile
, just changed to Alpine image and it takes 500 MB, and the original Debian container also uses 400 MB, why this happens?For comparison frontend Next.js container takes 50 MB, so 10x less.
What is the explanation for this, can this be optimized?
Beta Was this translation helpful? Give feedback.
All reactions