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 | a04b2760f4ad72a666251757f0efb97890948914 (patch) | |
tree | 97d046bd04d5a0faee219584137e5943a0dc05fe /Dockerfile | |
parent | a63180b5664842ef35baf2dfdf1516ce90dac03a (diff) | |
download | timeline-a04b2760f4ad72a666251757f0efb97890948914.tar.gz timeline-a04b2760f4ad72a666251757f0efb97890948914.tar.bz2 timeline-a04b2760f4ad72a666251757f0efb97890948914.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 .
|