aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-11 16:04:22 +0800
committerGitHub <noreply@github.com>2020-11-11 16:04:22 +0800
commita6b049ed65571b6b50d6e082c8845d9025191f01 (patch)
tree97d046bd04d5a0faee219584137e5943a0dc05fe /Dockerfile
parenta63180b5664842ef35baf2dfdf1516ce90dac03a (diff)
parenta04b2760f4ad72a666251757f0efb97890948914 (diff)
downloadtimeline-a6b049ed65571b6b50d6e082c8845d9025191f01.tar.gz
timeline-a6b049ed65571b6b50d6e082c8845d9025191f01.tar.bz2
timeline-a6b049ed65571b6b50d6e082c8845d9025191f01.zip
Merge pull request #172 from crupest/migrate
Migrate to .net 5.0.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index b602cba0..14b2d99b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 .