Docker Support

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.

Using Visual Studio Docker Tools, Wisej.NET 3 applications can be packaged and run in these containers.

Project

Installing

When creating a cross-platform Wisej.NET 3 application, Visual Studio will prompt the user to add Docker support to the project.

Wisej.NET 3 Project Wizard

Running

To run the Wisej.NET application in a Docker container, change the runtime target to Docker.

Docker runtime target
Visual Studio Docker Tools

Dockerfile

Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession.

Below is a sample Dockerfile configured to run a Wisej.NET 3 application that targets .NET 5.

Last updated

Was this helpful?