Docker - Windows Container

> Virtualization - (Virtual Machine|Container) > Docker

1 - About

Windows container type

Advertising

3 - Base Image

4 - Example

Docker - dockerfile

Example with several base image. The last one is used to build the image.

FROM microsoft/aspnetcore-build:1.1 AS build-env
WORKDIR /app
 
COPY *.csproj ./
RUN dotnet restore
 
COPY . ./
RUN dotnet publish -c Release -o out
 
FROM microsoft/aspnetcore:1.1
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "MvcMovie.dll"]

See the sample list

5 - Documentation / Reference