{"id":22423468,"url":"https://github.com/prantlf/docker-alpine-glibc","last_synced_at":"2025-08-10T00:03:15.560Z","repository":{"id":150431636,"uuid":"279019429","full_name":"prantlf/docker-alpine-glibc","owner":"prantlf","description":"Docker image: Alpine Linux with GNU C Library (glibc) for compatibility","archived":false,"fork":false,"pushed_at":"2022-10-24T06:46:11.000Z","size":46,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T03:27:50.219Z","etag":null,"topics":["alpine","alpine-glibc","docker","docker-image","glibc"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/prantlf.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}},"created_at":"2020-07-12T08:02:57.000Z","updated_at":"2023-03-19T18:45:32.000Z","dependencies_parsed_at":"2023-05-18T00:45:37.420Z","dependency_job_id":null,"html_url":"https://github.com/prantlf/docker-alpine-glibc","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/prantlf/docker-alpine-glibc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdocker-alpine-glibc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdocker-alpine-glibc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdocker-alpine-glibc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdocker-alpine-glibc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/docker-alpine-glibc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdocker-alpine-glibc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269654968,"owners_count":24454349,"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":["alpine","alpine-glibc","docker","docker-image","glibc"],"created_at":"2024-12-05T18:11:27.115Z","updated_at":"2025-08-10T00:03:15.444Z","avatar_url":"https://github.com/prantlf.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prantlf/alpine-glibc\n\n[Docker] image: Alpine Linux with GNU C Library (glibc) for compatibility\n\n[This image] is supposed to serve as a base for small images ([Alpine Linux]) which need to include tools built against [GNU C Library (glibc)]. This image is built automatically on the top of the tag `latest` from the [Alpine repository], so that it is always based on the latest [Alpine Linux]. The package [alpine-pkg-glibc] has to be updated from time to time by editing the Dockerfile and triggering a new build manually.\n\nIf you have trouble pulling the image from the Docker's default hub.docker.com, try gitlab.com, where [this project] is primarily maintained: `registry.gitlab.com/prantlf/docker-alpine-glibc`.\n\n## Tags\n\nTags consist of versions of the Alpine Linux and GLIBC in this order, separated by a hyphen. The `latest` tag maps to the latest `\u003calpine\u003e` tag. The latest `\u003calpine\u003e` tag maps to the latest `\u003calpine\u003e-\u003cglibc\u003e` tag. The `bin` and `\u003calpine\u003e-bin` tags contain the `glibc-bin` package installed too.\n\n- [`latest`], `bin`\n- `3.16`, `3.16-bin`, `3.16-2.35`, `3.16-2.35-bin`\n- `3.15`, `3.15-bin`, `3.14`, `3.14-2.34`, `3.14-2.33`, `3.13`, `3.12`\n\n## Install\n\n```\ndocker pull prantlf/alpine-glibc\ndocker pull prantlf/alpine-glibc:3.16\n```\n\n## Use\n\nYou can create your own image based on this one by referring to it from your `Dockerfile`:\n\n```dockerfile\nFROM prantlf/alpine-glibc:latest\n```\n\nThe final image can use the English locale by setting the environment variable `LANG` to  `C.UTF-8` or `en_US.UTF-8`.\n\nSee the [`git-p4` Docker image repository] for an example.\n\nIf you install `glibc-i18n-2.34-r0.apk` and create a locale by `/usr/glibc-compat/bin/localedef`, you will need to unpack the charmap. For example:\n\n    gunzip --keep /usr/glibc-compat/share/i18n/charmaps/UTF-8.gz\n    /usr/glibc-compat/bin/localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8\n\nIt appears, that installing another package using `apk` breaks the symlink to `ld-linux-x86-64.so.2` in `/lib64`. If it happens to you, restore the symlink after executing `apk`:\n\n    ln -sf /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2\n\n## Build, Test and Publish\n\nThe local image is built as `alpine-glibc` and pushed to the docker hub as `prantlf/alpine-glibc:latest`.\n\n    # Remove an old local image:\n    make clean\n    # Check the `Dockerfile`:\n    make lint\n    # Build a new local image:\n    make build\n    # Enter an interactive shell inside the created image:\n    make run\n    # Login to the docker hub:\n    make login\n    # Push the local image to the docker hub:\n    make push\n    # Pull the image from the docker hub:\n    make pull\n    # Add version tags to the published image:\n    make tag\n\n## License\n\nCopyright (c) 2020-2022 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[Docker]: https://www.docker.com/\n[This image]: https://hub.docker.com/repository/docker/prantlf/alpine-glibc\n[this project]: https://gitlab.com/prantlf/docker-alpine-glibc#prantlfalpine-glibc\n[`latest`]: https://hub.docker.com/repository/docker/prantlf/alpine-glibc/tags\n[GNU C Library (glibc)]: https://www.gnu.org/software/libc/\n[alpine-pkg-glibc]: https://github.com/sgerrand/alpine-pkg-glibc#readme\n[Alpine repository]: https://hub.docker.com/_/alpine\n[Alpine Linux]: https://alpinelinux.org/\n[`git-p4` Docker image repository]: https://github.com/prantlf/docker-git-p4#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fdocker-alpine-glibc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fdocker-alpine-glibc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fdocker-alpine-glibc/lists"}