{"id":13678004,"url":"https://github.com/bitwalker/alpine-erlang","last_synced_at":"2025-04-05T22:31:39.735Z","repository":{"id":5334062,"uuid":"52894791","full_name":"bitwalker/alpine-erlang","owner":"bitwalker","description":"An alpine image with Erlang installed, intended for releases","archived":false,"fork":false,"pushed_at":"2024-03-18T17:35:44.000Z","size":108,"stargazers_count":82,"open_issues_count":3,"forks_count":59,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-21T12:59:21.803Z","etag":null,"topics":["alpine-linux","containers","docker-image","dockerfile","erlang"],"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/bitwalker.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":"2016-03-01T17:10:47.000Z","updated_at":"2024-09-19T22:09:48.000Z","dependencies_parsed_at":"2024-08-02T13:16:16.259Z","dependency_job_id":null,"html_url":"https://github.com/bitwalker/alpine-erlang","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Falpine-erlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Falpine-erlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Falpine-erlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Falpine-erlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/alpine-erlang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411236,"owners_count":20934650,"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":["alpine-linux","containers","docker-image","dockerfile","erlang"],"created_at":"2024-08-02T13:00:49.299Z","updated_at":"2025-04-05T22:31:39.378Z","avatar_url":"https://github.com/bitwalker.png","language":"Dockerfile","readme":"# Erlang on Alpine Linux\n\nThis Dockerfile provides a full installation of Erlang on Alpine, intended for running Erlang releases,\nso it has no build tools installed. The Erlang installation is provided so one can avoid cross-compiling\nreleases. The caveat of course is if one has NIFs which require a native compilation toolchain, but that is\nleft as an exercise for the reader.\n\n**NOTE:** This image is primarily intended to either be used as-is, or as the base for an image which is\nembellished with additional dependencies. It is also intended to be forked and tweaked as needed for those\napplications which require different build configurations of OTP. If the default configuration does not work\nfor you, you will need to take one of the approaches described under _Extending for your own application_.\n\n## Usage\n\nNOTE: This image sets up a `default` user, with home set to `/opt/app` and owned by that user. The working directory\nis also set to `$HOME`. It is highly recommended that you add a `USER default` instruction to the end of your\nDockerfile so that your app runs in a non-elevated context.\n\nTo boot straight to a prompt in the image (versioning info is stripped here, but this is just to give you a general idea\nof what to expect):\n\n```\n$ docker run --rm -it --user=root bitwalker/alpine-erlang erl\nErlang/OTP XX [erts-X.X] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]\n\nEshell VX.X  (abort with ^G)\n1\u003e\nBREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded\n       (v)ersion (k)ill (D)b-tables (d)istribution\na\n```\n\n## Extending for your own application\n\n**NOTE:** The dependency requirements for your own application may need additional system packages installed via APK,\nor additional OTP applications from the standard library which are not built by default in order to save space. In\nthe former case, you need to build your own image based on `alpine-erlang` which installs those extra packages. If\nyou need additional OTP applications from the standard library, you will need to fork `alpine-erlang` and tweak the\nconfig flags for the build so that those applications are present.\n\n```dockerfile\nFROM bitwalker/alpine-erlang:latest\n\n# Set exposed ports\nEXPOSE 5000\nENV PORT=5000\n\nENV MIX_ENV=prod\n\nADD yourapp.tar.gz ./\n\nUSER default\n\nENTRYPOINT [\"./bin/yourapp\"]\nCMD [\"foreground\"]\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Falpine-erlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Falpine-erlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Falpine-erlang/lists"}