Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimised dokerfile for backend and added .dockerignore #73

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

abhayymishraa
Copy link
Contributor

@abhayymishraa abhayymishraa commented Nov 20, 2024

Optimized the Docker build process by implementing multi-stage builds that separate build and runtime environments.

Enhanced efficiency through minimal dependency installation using --no-install-recommends flag, while optimizing system libraries and pip package management.

Also Included .dockerignore file so that the image should contain only necessay files.

The new architecture includes configured image storage directories and necessary port exposures, resulting in reduced image size and improved resource usage.

Size is reduced which will be directly propotional to performance

Screenshot from 2024-11-20 17-05-18

Results

Everything is working and backend is successfull running in the port 8000

Screenshot from 2024-11-20 17-15-19

All changes have been thoroughly tested and verified in the target environment.

closes
#63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant