Comment on page
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 3 applications can be packaged and run in these containers.
When creating a cross-platform Wisej 3 application, Visual Studio will prompt the user to add Docker support to the project.
Wisej 3 Project Wizard
To run the Wisej application in a Docker container, change the runtime target to Docker.
Docker runtime target
When building and running a Docker project, the first TargetFramework is always used. If Docker can't run the first TargetFramework, it will target the second or third listed framework.
Docker can build images automatically by reading the instructions from a
Dockerfileis a text document that contains all the commands a user could call on the command line to assemble an image. Using
docker buildusers can create an automated build that executes several command-line instructions in succession.
Below is a sample Dockerfile configured to run a Wisej 3 application that targets .NET 5.
Be sure to update the Dockerfile if the TargetFramework is not .NET5.0.