{"id":13437746,"url":"https://github.com/liuchong/docker-rustup","last_synced_at":"2025-04-12T01:55:44.516Z","repository":{"id":37333933,"uuid":"56304679","full_name":"liuchong/docker-rustup","owner":"liuchong","description":"Automated builded images for rust-lang with rustup, \"the ultimate way to install RUST\"","archived":false,"fork":false,"pushed_at":"2025-04-12T01:43:30.000Z","size":149,"stargazers_count":92,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T01:55:37.913Z","etag":null,"topics":["docker","dockerfile","musl","rust","rust-lang","rustup"],"latest_commit_sha":null,"homepage":"https://store.docker.com/community/images/liuchong/rustup/","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/liuchong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-04-15T08:36:33.000Z","updated_at":"2025-04-11T11:33:49.000Z","dependencies_parsed_at":"2023-09-24T04:00:13.211Z","dependency_job_id":"a034e861-d0d0-4eb0-abb5-e4866f46988c","html_url":"https://github.com/liuchong/docker-rustup","commit_stats":null,"previous_names":[],"tags_count":94,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchong%2Fdocker-rustup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchong%2Fdocker-rustup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchong%2Fdocker-rustup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchong%2Fdocker-rustup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuchong","download_url":"https://codeload.github.com/liuchong/docker-rustup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505867,"owners_count":21115354,"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","dockerfile","musl","rust","rust-lang","rustup"],"created_at":"2024-07-31T03:00:59.922Z","updated_at":"2025-04-12T01:55:44.480Z","avatar_url":"https://github.com/liuchong.png","language":"Dockerfile","readme":"# rustup\n\n[![Build Status](https://github.com/liuchong/docker-rustup/actions/workflows/build.yml/badge.svg)](https://github.com/liuchong/docker-rustup/actions/workflows/build.yml)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fliuchong%2Fdocker-rustup.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fliuchong%2Fdocker-rustup?ref=badge_shield)\n\nAutomated builded images on [store](https://store.docker.com/community/images/liuchong/rustup/) and [hub](https://hub.docker.com/r/liuchong/rustup/) for rust-lang with musl added, using rustup \"the ultimate way to install RUST\".\n\n***tag changed: all3 -\u003e all***\n\n***note:***\n\n0. *Image buildings are ***triggered*** by automated builds on cloud.docker.com when \"build branch\" is updated by build.sh*\n1. *Please check [liuchong/rustup tags](https://store.docker.com/community/images/liuchong/rustup/tags) on [store](https://store.docker.com/) instead of [Build Details](https://hub.docker.com/r/liuchong/rustup/builds/) on [hub](https://hub.docker.com/)*\n2. *The \"build branch\" and \"tags\" are meaningless but just docker images(which are with stable/versions tags) for building*\n3. *the \"version tags\" are available from 1.15.0*\n4. *the stable/beta/nightly tags does not have the package \"musl-tools\" and the target \"x86_64-unknown-linux-musl\" installed by default*\n\n# Usage\n\n## Images\n\n#### pull the images:\n\n``` shell\n\u003e docker pull liuchong/rustup\n\u003e docker pull liuchong/rustup:musl\n```\n\nthe tags are:\n\n- stable/version: [(stable/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/stable/Dockerfile)\n- stable-musl/version-musl: [(stable_musl/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/stable_musl/Dockerfile)\n- beta: [(beta/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/beta/Dockerfile)\n- beta-musl: [(beta_musl/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/beta_musl/Dockerfile)\n- nightly: [(nightly/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/nightly/Dockerfile)\n- nightly-musl: [(nightly_musl/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/nightly_musl/Dockerfile)\n- nightly-onbuild: [(nightly_onbuild/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/nightly_onbuild/Dockerfile)\n- nightly-musl-onbuild: [(nightly_musl_onbuild/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/nightly_musl_onbuild/Dockerfile)\n- all: [(all/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/all/Dockerfile)\n- all-musl, musl, latest: [(all_musl/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/all_musl/Dockerfile)\n- plus: [(plus/Dockerfile)](https://github.com/liuchong/docker-rustup/blob/master/dockerfiles/plus/Dockerfile)\n\n#### use the image\n\n###### just setup the Dockerfile:\n\n``` dockerfile\nFROM liuchong/rustup:stable\n...\n```\n\n###### or you maybe prefer to make a musl static building:\n\n``` bash\n# you can also use \"latest\", which is the same as \"musl\".\ndocker run -v $PWD:/build_dir -w /build_dir -t liuchong/rustup:musl cargo build --release\n# or, you may want to use nightly channel and fix the ownership and remove container after run as below:\ndocker run --rm -v $PWD:/build_dir -w /build_dir -t liuchong/rustup:musl sh -c \"rustup run nightly cargo build --release \u0026\u0026 chown -R $(id -u):$(id -g) target\"\n```\n\nthen, you can write a dockerfile like this and build you app image(so, the image will be very small):\n\n``` dockerfile\nFROM scratch\nADD target/x86_64-unknown-linux-musl/release/your-app /\nCMD [\"/your-app\"]\n# or something like this:\n# CMD [\"/your-app\", \"--production\"]\n```\n\n## Build script\n\n``` bash\n# Use automatical checked version from website for current stable builds:\n./build.sh\n# Use a specified stable version from command line:\n./build.sh 1.21.0\n# Do not build versioning tag, just pass a string which is not fit the version pattern,\n# as the first argument:\n./build.sh no-version\n./build.sh foo\n```\n\n## License\n\n[MIT](LICENSE)\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fliuchong%2Fdocker-rustup.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fliuchong%2Fdocker-rustup?ref=badge_large)\n","funding_links":[],"categories":["Development tools","开发工具 Development tools","开发工具"],"sub_categories":["Deployment","部署 Deployment","部署"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuchong%2Fdocker-rustup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuchong%2Fdocker-rustup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuchong%2Fdocker-rustup/lists"}