{"id":17288919,"url":"https://github.com/devraymondsh/ubuntu-rust","last_synced_at":"2025-08-03T23:39:41.102Z","repository":{"id":134828770,"uuid":"562950239","full_name":"devraymondsh/ubuntu-rust","owner":"devraymondsh","description":"A Rust docker image built on top of Ubuntu Linux.","archived":false,"fork":false,"pushed_at":"2025-06-27T08:11:30.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T09:24:11.188Z","etag":null,"topics":[],"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/devraymondsh.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":"2022-11-07T15:41:40.000Z","updated_at":"2025-06-27T08:11:34.000Z","dependencies_parsed_at":"2023-11-17T09:53:58.576Z","dependency_job_id":"119a28d3-405c-4630-8726-a42f07efc7e5","html_url":"https://github.com/devraymondsh/ubuntu-rust","commit_stats":null,"previous_names":["devraymondsh/ubuntu-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devraymondsh/ubuntu-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fubuntu-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fubuntu-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fubuntu-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fubuntu-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devraymondsh","download_url":"https://codeload.github.com/devraymondsh/ubuntu-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Fubuntu-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629582,"owners_count":24281172,"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-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2024-10-15T10:32:37.291Z","updated_at":"2025-08-03T23:39:41.066Z","avatar_url":"https://github.com/devraymondsh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### A Rust docker image built on top of Ubuntu Linux.\n\n## Supported tags:\n\n- 24.04, 24.04-1.88, noble-1.88, noble-latest, noble, 24.04-latest, latest-1.88, 1.88, latest\n- 23.04, 23.04-1.88, lunar-1.88, lunar-latest, lunar\n- 22.04, 22.04-1.88, jammy-1.88, jammy-latest, jammy\n- 20.04, 20.04-1.88, focal-1.88, focal-latest, focal\n\n## How to use this image\n\n### Start a Rust instance running your app\n\nThe most straightforward way to use this image is to use a Rust container as both the build and runtime environment. In your Dockerfile, writing something along the lines of the following will compile and run your project:\n\n```Dockerfile\nFROM devraymondsh/ubuntu-rust:latest\n\nWORKDIR /usr/src/myapp\nCOPY . .\n\nRUN cargo install --path .\n\nCMD [\"myapp\"]\n```\n\nThen, build and run the Docker image:\n\n`$ docker build -t my-rust-app .`\u003cbr /\u003e\n`$ docker run -it --rm --name my-running-app my-rust-app`\n\nThis creates an image that has all of the rust tooling for the image. If you just want the compiled application which has a smaller size:\n\n```Dockerfile\nFROM devraymondsh/ubuntu-rust:latest as builder\nWORKDIR /usr/src/myapp\nCOPY . .\nRUN cargo install --path .\n\nFROM debian:buster-slim\nRUN apt-get update \u0026\u0026 apt-get install -y extra-runtime-dependencies \u0026\u0026 rm -rf /var/lib/apt/lists/*\nCOPY --from=builder /usr/local/cargo/bin/myapp /usr/local/bin/myapp\nCMD [\"myapp\"]\n```\n\nNote: Some shared libraries may need to be installed as shown in the installation of the extra-runtime-dependencies line above.\n\n## Compile your app inside the Docker container\n\nThere may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like:\u003cbr /\u003e\n`$ docker run --rm --user \"$(id -u)\":\"$(id -g)\" -v \"$PWD\":/usr/src/myapp -w /usr/src/myapp devraymondsh/ubuntu-rust:latest cargo build --release`\u003cbr /\u003e\nThis will add your current directory, as a volume, to the container, set the working directory to the volume, and run the command cargo build --release. This tells Cargo, Rust's build system, to compile the crate in myapp and output the executable to target/release/myapp.\n\n## License\n\nThe image is licensed under the MIT license. Visit [LICENSE](https://github.com/devraymondsh/ubuntu-rust/blob/main/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Fubuntu-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevraymondsh%2Fubuntu-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Fubuntu-rust/lists"}