{"id":19814861,"url":"https://github.com/cake-build/docker","last_synced_at":"2025-05-01T10:31:19.799Z","repository":{"id":37866053,"uuid":"124753402","full_name":"cake-build/docker","owner":"cake-build","description":"🐳 🍰 Docker images with Cake tool pre-installed","archived":false,"fork":false,"pushed_at":"2023-11-24T12:40:41.000Z","size":126,"stargazers_count":22,"open_issues_count":2,"forks_count":16,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-20T23:23:19.202Z","etag":null,"topics":["cake-build","docker","docker-image","docker-images","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://cakebuild.net/","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/cake-build.png","metadata":{"funding":{"open_collective":"cake"},"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}},"created_at":"2018-03-11T12:18:00.000Z","updated_at":"2024-06-18T10:02:42.000Z","dependencies_parsed_at":"2023-12-18T02:00:24.490Z","dependency_job_id":"93e4ce0f-1f74-4884-9d5d-ff0a6d6ba709","html_url":"https://github.com/cake-build/docker","commit_stats":{"total_commits":100,"total_committers":5,"mean_commits":20.0,"dds":"0.050000000000000044","last_synced_commit":"aa1f3e03d6d83fdab0945c4ee2a00e8f6f9f363b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-build%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-build%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-build%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-build%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cake-build","download_url":"https://codeload.github.com/cake-build/docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251558337,"owners_count":21608803,"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":["cake-build","docker","docker-image","docker-images","hacktoberfest"],"created_at":"2024-11-12T10:03:32.676Z","updated_at":"2025-05-01T10:31:19.532Z","avatar_url":"https://github.com/cake-build.png","language":"C#","funding_links":["https://opencollective.com/cake"],"categories":[],"sub_categories":[],"readme":"[![Build on GitHub Ubuntu Latest Agent](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsUbuntuLatest.yml/badge.svg)](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsUbuntuLatest.yml)\n[![Build on GitHub Windows 2019 Agent](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsWin2019.yml/badge.svg)](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsWin2019.yml)\n[![Build on GitHub Windows 2022 Agent](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsWin2022.yml/badge.svg)](https://github.com/cake-build/docker/actions/workflows/BuildGitHubAgentsWin2022.yml)\n[![Build on Self Hosted Agent](https://github.com/cake-build/docker/actions/workflows/BuildSelfHostedAgent.yml/badge.svg)](https://github.com/cake-build/docker/actions/workflows/BuildSelfHostedAgent.yml)\n[![Docker Pulls](https://img.shields.io/docker/pulls/cakebuild/cake.svg)](https://hub.docker.com/r/cakebuild/cake/tags/) [![Docker Stars](https://img.shields.io/docker/stars/cakebuild/cake.svg)](https://hub.docker.com/r/cakebuild/cake/tags/)\n\n# Cake docker images 🍰🐳\n\nCake official Docker files with .NET SDK and Cake global tool pre-installed.\n\n## Images\n\nImages are currently continuously built for last 10 versions of Cake version 1.0 or newer.\nCurrently based on official Microsoft images available ( [mcr.microsoft.com/dotnet/sdk](https://github.com/microsoft/containerregistry) ).\n\nTo pin to a specific version suffix with Cake version i.e. `cakebuild/cake:sdk-6.0` becomes `cakebuild/cake:sdk-6.0-v1.3.0`.\n\nTags are added dynamically as new are added to Microsoft container registry, check https://hub.docker.com/r/cakebuild/cake/tags for currently available tags.\n\n### Linux Images\n\n| Image                                         | Based on                                              |\n|-----------------------------------------------|-------------------------------------------------------|\n|  cakebuild/cakesdk:6.0                        |  mcr.microsoft.com/dotnet/sdk:6.0                     |\n|  cakebuild/cakesdk:6.0-alpine                 |  mcr.microsoft.com/dotnet/sdk:6.0-alpine              |\n|  cakebuild/cakesdk:6.0-alpine3.14             |  mcr.microsoft.com/dotnet/sdk:6.0-alpine3.14          |\n|  cakebuild/cakesdk:6.0-alpine3.16             |  mcr.microsoft.com/dotnet/sdk:6.0-alpine3.16          |\n|  cakebuild/cakesdk:6.0-alpine3.17             |  mcr.microsoft.com/dotnet/sdk:6.0-alpine3.17          |\n|  cakebuild/cakesdk:6.0-alpine3.18             |  mcr.microsoft.com/dotnet/sdk:6.0-alpine3.18          |\n|  cakebuild/cakesdk:6.0-bookworm-slim          |  mcr.microsoft.com/dotnet/sdk:6.0-bookworm-slim       |\n|  cakebuild/cakesdk:6.0-bullseye-slim          |  mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim       |\n|  cakebuild/cakesdk:6.0-cbl-mariner            |  mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner         |\n|  cakebuild/cakesdk:6.0-cbl-mariner1.0         |  mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner1.0      |\n|  cakebuild/cakesdk:6.0-cbl-mariner2.0         |  mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner2.0      |\n|  cakebuild/cakesdk:6.0-focal                  |  mcr.microsoft.com/dotnet/sdk:6.0-focal               |\n|  cakebuild/cakesdk:6.0-jammy                  |  mcr.microsoft.com/dotnet/sdk:6.0-jammy               |\n|  cakebuild/cakesdk:7.0                        |  mcr.microsoft.com/dotnet/sdk:7.0                     |\n|  cakebuild/cakesdk:7.0-alpine                 |  mcr.microsoft.com/dotnet/sdk:7.0-alpine              |\n|  cakebuild/cakesdk:7.0-alpine3.16             |  mcr.microsoft.com/dotnet/sdk:7.0-alpine3.16          |\n|  cakebuild/cakesdk:7.0-alpine3.17             |  mcr.microsoft.com/dotnet/sdk:7.0-alpine3.17          |\n|  cakebuild/cakesdk:7.0-alpine3.18             |  mcr.microsoft.com/dotnet/sdk:7.0-alpine3.18          |\n|  cakebuild/cakesdk:7.0-bookworm-slim          |  mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim       |\n|  cakebuild/cakesdk:7.0-bullseye-slim          |  mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim       |\n|  cakebuild/cakesdk:7.0-cbl-mariner            |  mcr.microsoft.com/dotnet/sdk:7.0-cbl-mariner         |\n|  cakebuild/cakesdk:7.0-cbl-mariner2.0         |  mcr.microsoft.com/dotnet/sdk:7.0-cbl-mariner2.0      |\n|  cakebuild/cakesdk:7.0-jammy                  |  mcr.microsoft.com/dotnet/sdk:7.0-jammy               |\n|  cakebuild/cakesdk:8.0                        |  mcr.microsoft.com/dotnet/sdk:8.0                     |\n|  cakebuild/cakesdk:8.0-alpine                 |  mcr.microsoft.com/dotnet/sdk:8.0-alpine              |\n|  cakebuild/cakesdk:8.0-alpine3.18             |  mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18          |\n|  cakebuild/cakesdk:8.0-bookworm-slim          |  mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim       |\n|  cakebuild/cakesdk:8.0-cbl-mariner            |  mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner         |\n|  cakebuild/cakesdk:8.0-cbl-mariner2.0         |  mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0      |\n|  cakebuild/cakesdk:8.0-jammy                  |  mcr.microsoft.com/dotnet/sdk:8.0-jammy               |\n\n### Windows Images\n\n| Image                                                   | Based on                                                        |\n|---------------------------------------------------------|-----------------------------------------------------------------|\n|  cakebuild/cakesdk:6.0-nanoserver-1809                  |  mcr.microsoft.com/dotnet/sdk:6.0-nanoserver-1809               |\n|  cakebuild/cakesdk:6.0-nanoserver-20H2                  |  mcr.microsoft.com/dotnet/sdk:6.0-nanoserver-20H2               |\n|  cakebuild/cakesdk:6.0-nanoserver-ltsc2022              |  mcr.microsoft.com/dotnet/sdk:6.0-nanoserver-ltsc2022           |\n|  cakebuild/cakesdk:6.0-windowsservercore-ltsc2019       |  mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2019    |\n|  cakebuild/cakesdk:6.0-windowsservercore-ltsc2022       |  mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022    |\n|  cakebuild/cakesdk:7.0-nanoserver-1809                  |  mcr.microsoft.com/dotnet/sdk:7.0-nanoserver-1809               |\n|  cakebuild/cakesdk:7.0-nanoserver-ltsc2022              |  mcr.microsoft.com/dotnet/sdk:7.0-nanoserver-ltsc2022           |\n|  cakebuild/cakesdk:7.0-windowsservercore-ltsc2019       |  mcr.microsoft.com/dotnet/sdk:7.0-windowsservercore-ltsc2019    |\n|  cakebuild/cakesdk:7.0-windowsservercore-ltsc2022       |  mcr.microsoft.com/dotnet/sdk:7.0-windowsservercore-ltsc2022    |\n|  cakebuild/cakesdk:8.0-nanoserver-1809                  |  mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-1809               |\n|  cakebuild/cakesdk:8.0-nanoserver-ltsc2022              |  mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-ltsc2022           |\n|  cakebuild/cakesdk:8.0-windowsservercore-ltsc2019       |  mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2019    |\n|  cakebuild/cakesdk:8.0-windowsservercore-ltsc2022       |  mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2022    |\n\n## Example usage\n\n### Interactive container\n\n```bash\ndocker run --rm -it cakebuild/cake:sdk-8.0 cake --version\n```\n\n### Use as builder image\n\n```Dockerfile\nFROM cakebuild/cake:sdk-8.0-alpine-v4.0.0 AS builder\n\nADD .  /src\n\nRUN Cake /src/build.cake --Target=Publish\n\nFROM mcr.microsoft.com/dotnet/aspnet:8.0\n\nWORKDIR app\n\nCOPY --from=builder /src/output .\n\nCMD [\"dotnet\",\"MyApp.dll\"]\n```\n\n### Environment variables\n\n| Name                  | Linux                     | Windows                       |\n|-----------------------|---------------------------|-------------------------------|\n| CAKE_PATHS_TOOLS      | /cake_build/tools         | C:/cake_build/tools           |\n| CAKE_PATHS_ADDINS     | /cake_build/tools/Addins  | C:/cake_build/tools/Addins    |\n| CAKE_PATHS_MODULES    | /cake_build/tools/Modules | C:/cake_build/tools/Modules   |\n\nThese are set to be able to keep foreign binaries inside your container and also enable caching of tools, addins and modules between docker layers.\n\n## Build Infrastructure\n\nContainers are currently built using GitHub Actions.\n\n### Operating systems\n\nWindows containers require OS support for specific versions of Windows to be built, so a matrix of Windows versions is used in orchestration using the same build script.\n\nThe build script will automatically detect if Docker is configured for building Windows or Linux containers.\n\nBut you can also pass parameters to filter to specific base images to build or exclude individual to not build.\n\n### Build script parameters\n\n| Name                      | Description                                                                                           |\n|---------------------------|-------------------------------------------------------------------------------------------------------|\n| remove-base-image         | Remove mcr base image after build, useful to conserve space used when building                        |\n| base-image-include-filter | Base image must start with this, can be specified multiple times to include multiple base images      |\n| base-image-exclude-filter | Base image can't start with this, can be specified multiple times, to exclude multiple base images    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-build%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcake-build%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-build%2Fdocker/lists"}