mirror of https://github.com/docker/docs.git
Update dotnetcore to 2.0 (#4205)
This commit is contained in:
parent
bb7ad4d5a6
commit
a8271f4376
|
@ -41,7 +41,7 @@ Windows](https://docs.docker.com/docker-for-windows/). Read more on [switching c
|
||||||
the `Dockerfile` to use the DLL file of your project.
|
the `Dockerfile` to use the DLL file of your project.
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM microsoft/aspnetcore-build:1.1 AS build-env
|
FROM microsoft/aspnetcore-build:2.0 AS build-env
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy csproj and restore as distinct layers
|
# Copy csproj and restore as distinct layers
|
||||||
|
@ -53,7 +53,7 @@ COPY . ./
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
# Build runtime image
|
# Build runtime image
|
||||||
FROM microsoft/aspnetcore:1.1
|
FROM microsoft/aspnetcore:2.0
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-env /app/out .
|
COPY --from=build-env /app/out .
|
||||||
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
|
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
|
||||||
|
|
Loading…
Reference in New Issue