diff options
author | crupest <crupest@outlook.com> | 2020-11-11 15:45:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-11 15:45:27 +0800 |
commit | 86c7ef8aca3982754456cf99609ec4f83fc09f5c (patch) | |
tree | e20f58d5166ef4b335a7d48dc0a9b9959ef0ab3f /Dockerfile | |
parent | acef142fbbff0a22d7df5268c0d2839a6335774e (diff) | |
download | timeline-86c7ef8aca3982754456cf99609ec4f83fc09f5c.tar.gz timeline-86c7ef8aca3982754456cf99609ec4f83fc09f5c.tar.bz2 timeline-86c7ef8aca3982754456cf99609ec4f83fc09f5c.zip |
Migrate to .net 5.0.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,13 +3,13 @@ WORKDIR /timeline-app COPY FrontEnd .
RUN yarn && yarn build
-FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS back-build
+FROM mcr.microsoft.com/dotnet/sdk:5.0 AS back-build
WORKDIR /timeline-app
COPY BackEnd .
COPY --from=front-build /timeline-app/dist /timeline-app/Timeline/ClientApp
RUN dotnet publish Timeline/Timeline.csproj --configuration Release --output ./Timeline/publish/ -r linux-x64 --self-contained false
-FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
+FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED true
COPY --from=back-build /timeline-app/Timeline/publish .
|