Skip to content
Dmitry Golubenkov edited this page Aug 21, 2023 · 2 revisions

SharpDockerizer

Features

SharpDockerizer is an app that can automatically build a Dockerfile for ASP.NET (and sometimes other .NET) projects using solution data. SharpDockerizer auto-parses a lot of things to be able to create a file that would require little to no modifications in most use cases.

SharpDockerizer can:

  • Parse solution to find all .NET projects
  • Parse all dependencies between projects that are required to build selected project
  • Detect NuGet config files in projects and solution
  • Detect .NET version of main project and select appopriate docker image version
  • Detect files with .sdtemplate extensions at solution and project level and use them to generate a custom Dockerfile

Installation

Simply download the latest stable version from GitHub and unzip it to its own folder. SharpDockerizer will create some folders and files during execution.

If you want to get the latest features - you can clone the repository and build it using dotnet build, Visual Studio, JetBrains Rider etc. Most of the time it will compile. But there can be bugs. And new features. With bugs.

Bugs?

SharpDockerizer is not a perfect app, so it can sometimes randomly crash even without an error message. If you see that the application doesn't work as expected - you can use log files in log/ folder to determine the cause. Also you can provide this information in GitHub issues so that the bug could be fixed in future.

Clone this wiki locally