You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem you're facing?
At the moment, dockershrink only supports docker images for Nodejs applications.
Python images do not get optimized for size.
Describe the solution you'd like dockershrink optimize can detect whether an image is for a nodejs app or a python app and apply suitable optimizations.
Additional context
This is not a tiny feature, but a very big effort to undertake.
I need more inputs from the community, especially about python-specific strategies to reduce image size that we can implement.
This issue will help us understand what python support should look like (at least the initial release of it)
The text was updated successfully, but these errors were encountered:
To identify the language or runtime used in a Dockerfile, we can follow a few approaches:
Check the Builder Stage: If the Dockerfile uses a builder stage, like FROM python or FROM node, it can directly indicate whether it's Python or Node.js.
Analyze Base Images: For base images like ubuntu, we can examine subsequent layers (RUN commands) to see if they install Node.js, Python, or related dependencies.
File Analysis: Inspect the files being copied or used in the Dockerfile (e.g., .py for Python, .js for Node.js) to understand the runtime.
Environment Variables: Look for clues like ENV FLASK_APP=app.py or ENV NODE_ENV=production.
Ports and Commands: EXPOSE ports (e.g., 3000 for Node.js, 5000 for Flask) and CMD/ENTRYPOINT directives can provide additional hints.
Also, maybe we can use AI to understand what language is it using and build accordingly.
If you want i can pick this up.
Is your feature request related to a problem you're facing?
At the moment, dockershrink only supports docker images for Nodejs applications.
Python images do not get optimized for size.
Describe the solution you'd like
dockershrink optimize
can detect whether an image is for a nodejs app or a python app and apply suitable optimizations.Additional context
This is not a tiny feature, but a very big effort to undertake.
I need more inputs from the community, especially about python-specific strategies to reduce image size that we can implement.
This issue will help us understand what python support should look like (at least the initial release of it)
The text was updated successfully, but these errors were encountered: