Table of Contents

About

Windows container type

Base Image

Docker - Image

Example

Docker

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