{"id":18974152,"url":"https://github.com/eht16/python3-docker","last_synced_at":"2025-04-19T16:39:49.487Z","repository":{"id":46065133,"uuid":"226736583","full_name":"eht16/python3-docker","owner":"eht16","description":"A slim Python 3 image for Docker","archived":false,"fork":false,"pushed_at":"2021-11-16T21:39:06.000Z","size":26,"stargazers_count":9,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T00:38:14.006Z","etag":null,"topics":["docker","docker-image","python","python-3"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/eht16.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}},"created_at":"2019-12-08T21:47:51.000Z","updated_at":"2023-10-30T17:18:43.000Z","dependencies_parsed_at":"2022-07-25T22:18:28.665Z","dependency_job_id":null,"html_url":"https://github.com/eht16/python3-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fpython3-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fpython3-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fpython3-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fpython3-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eht16","download_url":"https://codeload.github.com/eht16/python3-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"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","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","docker-image","python","python-3"],"created_at":"2024-11-08T15:14:14.959Z","updated_at":"2025-04-16T09:33:53.542Z","avatar_url":"https://github.com/eht16.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python 3 image for Docker\n\n## About\n\nA slim Python 3 image for Docker.\nCurrently the resulting image contains Python 3.10, compiled from source and\nthe `pip` and `wheel` packages are included.\n\nThis is heavily inspired from the official Python image at\nhttps://github.com/docker-library/python/blob/master/3.9/buster/slim/Dockerfile\nbut has a few differences:\n\n  - use multi-stage build in Dockerfile to ease the build step and still get\n    a small image\n  - build Python without the `ncurses`, `readline` and `tk` modules for image\n    size, assuming a non-interactively used Python interpreter does not need\n    these modules\n  - the Python interpreter is installed to /python\n\nThe Dockerfile uses `debian:bullseye-slim` (https://hub.docker.com/_/debian/)\nas base but this is configurable at build time using `BASE_IMAGE_NAME`\nas build argument.\nTested with `debian:buster-slim`, `debian:bullseye-slim` and `ubuntu:18.04`,\nthe Dockerfile generally should work with most Debian based base images.\n\n### Motivation\n\n- Be able to specify a custom base image\n- Have a Python Docker image as small as possible while still usable for most use cases\n\n\n## Build\n\nJust build the image:\n\n    docker build --tag python3:latest .\n\nUse a different base image:\n\n    docker build --build-arg BASE_IMAGE_NAME=ubuntu:bionic --tag python3:bionic .\n\n\n## Usage\n\nBy default, the Python interpreter is started when the image is ran:\n\n    docker run --rm -it --name python3 python3:latest\n\nTo change this, just overwrite the `CMD` instruction in your Dockerfile.\n\n\n## License\n\nLicensed under the MIT License.\n\n\n## Author\n\nEnrico Tröger \u003cenrico.troeger@uvena.de\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feht16%2Fpython3-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feht16%2Fpython3-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feht16%2Fpython3-docker/lists"}