{"id":22166602,"url":"https://github.com/alextanhongpin/dotnetcore-docker","last_synced_at":"2026-05-19T10:01:43.648Z","repository":{"id":79114822,"uuid":"118546090","full_name":"alextanhongpin/dotnetcore-docker","owner":"alextanhongpin","description":".NET Core 2 with Docker","archived":false,"fork":false,"pushed_at":"2018-01-23T02:31:44.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T21:54:22.378Z","etag":null,"topics":["docker","dotnetcore2"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alextanhongpin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-23T02:31:27.000Z","updated_at":"2018-01-23T03:51:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d8e2281-f404-4861-a134-5f2a25df6916","html_url":"https://github.com/alextanhongpin/dotnetcore-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fdotnetcore-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fdotnetcore-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fdotnetcore-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fdotnetcore-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextanhongpin","download_url":"https://codeload.github.com/alextanhongpin/dotnetcore-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245308017,"owners_count":20594178,"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","dotnetcore2"],"created_at":"2024-12-02T05:20:07.809Z","updated_at":"2026-05-19T10:01:43.570Z","avatar_url":"https://github.com/alextanhongpin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservices with .NET Core 2\n\n\n## Init\n\n```bash\n# Create a new app in the current directory\n$ dotnet new console\n\n# Create a new app in the folder myApp\n$ dotnet new console -o myApp\n```\n\n## Publish \n\n```bash\n$ dotnet publish -o app\n```\n\n## Restore\n\n```bash\n$ dotnet restore\n```\n\n## Dockerize\n\nCreate a `.dockerignore`:\n\n```\nbin\\\nobj\\\n```\n\n```Dockerfile\nFROM microsoft/apsnetcore-build:2.0 AS build-env\nWORKDIR /app\n\n# Copy csproj and restore as distinct layers\nCOPY *.csproj ./\nRUN dotnet restore\n\n# Copy everything else and build\nCOPY . ./\nRUN dotnet publish -c Release -o out\n\n# Build runtime image\nFROM microsoft/aspnetcore:2.0\nWORKDIR /app\nCOPY --from=build-env /app/out .\nENTRYPOINT [\"dotnet\", \"microservice.dll\"]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fdotnetcore-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextanhongpin%2Fdotnetcore-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fdotnetcore-docker/lists"}