{"id":21744915,"url":"https://github.com/delijati/docker-shiv","last_synced_at":"2026-04-09T02:02:36.306Z","repository":{"id":151554799,"uuid":"248730630","full_name":"delijati/docker-shiv","owner":"delijati","description":"shiv docker wine zipapp windows python3","archived":false,"fork":false,"pushed_at":"2020-12-16T12:41:48.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T17:15:11.428Z","etag":null,"topics":["docker","executable","python3","shiv","windows","wine","zipapp"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delijati.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}},"created_at":"2020-03-20T10:42:31.000Z","updated_at":"2023-10-12T15:45:27.000Z","dependencies_parsed_at":"2023-06-01T18:30:29.225Z","dependency_job_id":null,"html_url":"https://github.com/delijati/docker-shiv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/delijati/docker-shiv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delijati%2Fdocker-shiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delijati%2Fdocker-shiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delijati%2Fdocker-shiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delijati%2Fdocker-shiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delijati","download_url":"https://codeload.github.com/delijati/docker-shiv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delijati%2Fdocker-shiv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["docker","executable","python3","shiv","windows","wine","zipapp"],"created_at":"2024-11-26T07:13:04.775Z","updated_at":"2026-04-09T02:02:36.301Z","avatar_url":"https://github.com/delijati.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shiv Windows Docker Images\n\nShiv is a wrapper around zipapp to package applications for easier\ndistribution.\n\n- zippapp https://docs.python.org/3/library/zipapp.html\n- shiv https://github.com/linkedin/shiv\n\nWith this docker image it is now possible to create a zippapp for windows on\nlinux by using wine. There is no compiler currently included so we depend on\nwheels or pure python applications.\n\n## Usage\n\nBuild for linux:\n\n```\n$ cd example/app\n$ pip install shiv\n$ shiv . -e app.__main__:cli -o app.pyz\n$ ./app.pyz\n```\n\nBuild for windows:\n\n```\n$ cd example/app\n$ docker run -v \"$(pwd):/src/\" delijati/shiv64 \"shiv . -e app.__main__:cli -o app.pyz\"\n```\n\nThis will create a `app.pyz` that has all dependencies added in a zip.\n\nTo run it \n\n```\n# copy to windows\n# you need to specify the interpreter the version should be the same\n$ python app.pyz\n```\n\n### Add python interpreter\n\nTo have all in one place it is also possible to add the python interpreter.\n\n```\n$ PYTHON_VERSION=3.8.6\n$ wget https://www.python.org/ftp/python/$PYTHON_VERSION/python-$PYTHON_VERSION-embed-amd64.zip\n$ unzip python-$PYTHON_VERSION-embed-amd64.zip -d python\n$ rm python-$PYTHON_VERSION-embed-amd64.zip\n$ vim run.bat\nECHO Starting app.pyz\nECHO To stop press CTRL+PAUSE\npython\\python.exe app.pyz run\n```\n\nHave a look into the `example` app.\n\n### Is it possible to use a package mirror?\n\nYes, by supplying the `PYPI_URL` and `PYPI_INDEX_URL` environment variables that point to your PyPi mirror.\n\n## Known Issues\n\nSome packages seam to not work well in zippapp pandas==1.0.3 has import errors\nbut pandas==1.0.1 work.\n\n## History\n\n#### [2.0] - 2020-12-15\n- Use python 3.8.6\n- Use winehq-stable as of a bug: https://github.com/cdrx/docker-pyinstaller/issues/103#issuecomment-745932021\n\n#### [1.1] - 2020-03-27\n- Added NSIS installer\n- Added NSIS installer to example app\n\n#### [1.0] - 2020-03-14\n- Initial release\n\n\n## License\n\nMIT\n\n## Thanks\n\nThanks to https://github.com/cdrx/docker-pyinstaller that i used as template.\n\n## TODO\n\nTry darling aka wine for macos https://github.com/utensils/docker-darling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelijati%2Fdocker-shiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelijati%2Fdocker-shiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelijati%2Fdocker-shiv/lists"}