Detection
Your application is detected as Python when one of these files is present in the root directory:requirements.txtsetup.pyPipfilepyproject.toml
Version Detection
The Python version is determined from the following sources, in order of priority:.python-versionruntime.txtpyproject.toml(e.g.,requires-pythonor tool-specific settings)
Build Process
During the build, the following steps are performed:- Package manager detection - The package manager is auto-detected:
requirements.txt→ pippyproject.tomlwith a compatible configuration → uv (or pip as fallback)
- Dependency installation - All dependencies are installed using the detected package manager.
- System packages - Common system-level dependencies are auto-detected and installed for packages such as
psycopg,mysqlclient,lxml, and others that require native libraries. - Django support - If Django is detected:
collectstaticruns automatically to gather static assets.gunicornoruvicornis used as the application server.
Run Command
The run command is resolved in the following order:- Django with gunicorn (if Django and gunicorn are detected)
- Django with uvicorn (if Django and uvicorn are detected)
webprocess in aProcfile- Default module entry point

Configuration
You can customize the build and runtime behavior through the Miget dashboard and repository configuration files:- Environment variables - Set under Settings -> Variables in the Miget dashboard
- Procfile - Define the start command at the root of your repository
- app.json - Application manifest for additional configuration
- Project Path - For monorepo setups, specify the subdirectory containing your application code in the Advanced tab
- Pre-Deploy Command - Run a command before deployment (e.g., database migrations) in the Advanced tab
- Post-Deploy Command - Run a command after successful deployment (e.g., seeding data, cache warming) in the Advanced tab
Docker Hardened Images
You can enable Docker Hardened Images (DHI) in the Advanced tab when creating your app or changing the deployment source. When enabled, your application is built using distroless runtime images with a minimal attack surface, no shell, and no package manager.
For the complete reference, see the migetpacks Python documentation.

