Sign inSign up

jfrancis/cmdapi

By jfrancis

•Updated over 7 years ago

Image
0

815

jfrancis/cmdapi repository overview

##Dockerfile

FROM microsoft/dotnet:sdk AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out

# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "CmdApi.dll"]

Tag summary

Content type

Image

Digest

Size

157.3 MB

Last updated

over 7 years ago

docker pull jfrancis/cmdapi