{"id":16615612,"url":"https://github.com/pschmitt/docker-pyinstaller","last_synced_at":"2025-08-09T17:21:01.347Z","repository":{"id":141968690,"uuid":"248551214","full_name":"pschmitt/docker-pyinstaller","owner":"pschmitt","description":"pyinstaller + staticx in a container","archived":false,"fork":false,"pushed_at":"2025-01-30T08:48:41.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T00:07:21.833Z","etag":null,"topics":["container","debian","docker","pyinstaller","python"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/pschmitt/pyinstaller","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschmitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["pschmitt"],"custom":["https://www.paypal.com/paypalme/pppschmitt"]}},"created_at":"2020-03-19T16:25:58.000Z","updated_at":"2025-01-30T08:48:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"aaa825fc-f1ee-4ac0-bdbd-23d9e4009458","html_url":"https://github.com/pschmitt/docker-pyinstaller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pschmitt/docker-pyinstaller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-pyinstaller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-pyinstaller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-pyinstaller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-pyinstaller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/docker-pyinstaller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-pyinstaller/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269606745,"owners_count":24446256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","debian","docker","pyinstaller","python"],"created_at":"2024-10-12T02:10:01.151Z","updated_at":"2025-08-09T17:21:01.322Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":["https://github.com/sponsors/pschmitt","https://www.paypal.com/paypalme/pppschmitt"],"categories":[],"sub_categories":[],"readme":"# pyinstaller\n\n[![GitHub Actions CI](https://github.com/pschmitt/docker-pyinstaller/workflows/GitHub%20Actions%20CI/badge.svg)](https://github.com/pschmitt/docker-pyinstaller/actions?query=workflow%3A%22GitHub+Actions+CI%22)\n[![Docker Hub](https://img.shields.io/docker/pulls/pschmitt/pyinstaller)](https://hub.docker.com/r/pschmitt/pyinstaller)\n\nWith this container you can run pyinstaller over your projects. It uses the oldest possible debian version (ie. docker tag) so that the resulting binaries are compatible with a wider range of linux OSes.\n\n# Usage example\n\n```bash\ndocker run -it --rm \\\n  -v \"$PWD:/app\" \\\n  -e \"DEPS=libsasl2-dev libssl-dev libldap2-dev\" \\\n  -e REQUIREMENTS_FILE=requirements.txt \\\n  pschmitt/pyinstaller:3.7 \\\n    --hidden-import=pkg_resources.py2_warn \\\n    app.py\n```\n\n# Configuration\n\nThere's a few ENV vars you can set:\n\n- `REQUIREMENTS_FILE`: Path to a `requirements.txt` file which is to installed\nbefore running pyinstaller.\n- `UPDATE_PIP`: Set to any value to make the entrypoint script update pip,\nsetuptools and wheel before installing the dependencies defined in \n`requirements.txt` or `pyproject.toml`\n- `SKIP_PIP_INSTALL_PROJECT`: Set to any value to disable installing the project\nvia `pip install .` which may be undesirable if you want a `requirements.txt`\nfile to take precendence for example.\n\n## Static binaries\n\n**WARNING**: This is currently only \"supported\" on amd64.\n\nTo run staticx on the binary produced by pyinstaller you need can make use the `STATICX_*` environment variables:\n\n- `STATICX`: Enable staticx. Set to any value. Unset by default.\n- `STATICX_ARGS`: Set staticx's arguments. Eg: `--strip`. Unset by default.\n- `STATICX_TARGET`: Set the name of the binary in the `dist/` directory which we should run staticx against. Default to the first file in `dist/`.\n- `STATICX_OUTPUT`: Name of the resulting binary. Defaults to `${STATICX_TARGET}_static`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-pyinstaller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fdocker-pyinstaller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-pyinstaller/lists"}