{"id":38204668,"url":"https://github.com/lippertmarkus/konet","last_synced_at":"2026-01-17T00:33:19.341Z","repository":{"id":45770543,"uuid":"493974824","full_name":"lippertmarkus/konet","owner":"lippertmarkus","description":"Quickly build multi-platform container images for .NET applications without a container runtime","archived":false,"fork":false,"pushed_at":"2022-05-21T09:40:06.000Z","size":32,"stargazers_count":91,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T13:22:26.509Z","etag":null,"topics":["container","deploy","dotnet","image","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lippertmarkus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-19T07:56:05.000Z","updated_at":"2025-09-21T15:53:41.000Z","dependencies_parsed_at":"2022-08-03T09:45:19.793Z","dependency_job_id":null,"html_url":"https://github.com/lippertmarkus/konet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lippertmarkus/konet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lippertmarkus%2Fkonet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lippertmarkus%2Fkonet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lippertmarkus%2Fkonet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lippertmarkus%2Fkonet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lippertmarkus","download_url":"https://codeload.github.com/lippertmarkus/konet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lippertmarkus%2Fkonet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T23:55:29.509Z","status":"ssl_error","status_checked_at":"2026-01-16T23:55:29.108Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["container","deploy","dotnet","image","kubernetes"],"created_at":"2026-01-17T00:33:18.664Z","updated_at":"2026-01-17T00:33:19.328Z","avatar_url":"https://github.com/lippertmarkus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# `konet`: Easy .NET Containers\n\n[![Nuget](https://img.shields.io/nuget/v/konet)](https://www.nuget.org/packages/konet)\n[![Build](https://github.com/lippertmarkus/konet/actions/workflows/ci.yml/badge.svg)](https://github.com/lippertmarkus/konet/actions/workflows/ci.yml)\n\n![Alt text](https://raw.githubusercontent.com/lippertmarkus/konet/main/images/logo.svg)\n\n`konet` is an easy to use and fast container image builder for .NET applications.\n\nIt creates binaries for different platforms and architectures by running `dotnet build` and pushes only those binaries as new layers to a container image registry with a reference to a .NET base image.\n\n`konet` is fast as it builds binaries locally and doesn't require `docker` to be installed or base images to be pulled. It's easy to use, doesn't require writing a `Dockerfile` and produces minimal images.\n\n`konet` is heavily inspired by [`ko`](https://github.com/google/ko).\n\n## Setup\n\n### Installation\n\n`konet` is distributed as a [.NET tool](https://aka.ms/global-tools). With .NET [set up](https://dotnet.microsoft.com/en-us/download) you can easily install and update it: \n\n```\ndotnet tool install --global konet\n```\n\n### Update\n\n```\ndotnet tool update --global konet\n```\n\n### Authenticate\n\n`konet` can use existing authentication data, e.g. from `~/.docker/config.json`. As `konet` doesn't require `docker`, you can also login to a container image registry via `konet login`.\n\n\n## Build an Image\n\n`konet build` automatically compiles the current .NET project for all available architectures and pushes images including the binaries - all without downloading any base image and without a container runtime.\n\nExample:\n\n```bash\ndotnet new console -n myconsoleapp\ncd myconsoleapp/\nkonet build -t lippertmarkus/test-console:1.0\n# ...\n# Successfully pushed to lippertmarkus/test-console:1.0\n```\n\nThe result is a manifest list at the tag specified in `-t`, referencing images for different architectures with the compiled binary as the entrypoint.\n\n### Configuration\n\n#### Target Platforms\n\nPer default `konet` creates images for all platforms .NET supports and for which there is an official base image available. Those include `linux/amd64,linux/arm/v7,linux/arm64/v8,windows/amd64:1809,windows/amd64:1903,windows/amd64:1909,windows/amd64:2004,windows/amd64:20H2,windows/amd64:ltsc2022`.\n\nYou can limit the platforms by adding `-p windows/amd64:ltsc2022,linux/amd64` to `konet build`.\n\n## Acknowledgements\n\nThis work is heavily inspired by [`ko`](https://github.com/google/ko) and uses [`crane`](https://github.com/google/go-containerregistry/tree/main/cmd/crane) under the hood.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flippertmarkus%2Fkonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flippertmarkus%2Fkonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flippertmarkus%2Fkonet/lists"}