Docker - Windows Container

About

Windows container type

Base Image

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

Documentation / Reference


Powered by ComboStrap