diff options
author | crupest <crupest@outlook.com> | 2022-03-09 16:49:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-09 16:49:02 +0800 |
commit | aef73578b567f37cbe24991caa5fde536e96c378 (patch) | |
tree | f29895cd4597717d716476ebb0f6b8de3d921458 /Dockerfile | |
parent | 331c238b337d9d8f7b4e051712a95f45548debf5 (diff) | |
download | timeline-aef73578b567f37cbe24991caa5fde536e96c378.tar.gz timeline-aef73578b567f37cbe24991caa5fde536e96c378.tar.bz2 timeline-aef73578b567f37cbe24991caa5fde536e96c378.zip |
Migrate to .NET Core 6.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 npm ci && npm run build
-FROM mcr.microsoft.com/dotnet/sdk:5.0 AS back-build
+FROM mcr.microsoft.com/dotnet/sdk:6.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/aspnet:5.0
+FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED true
COPY --from=back-build /timeline-app/Timeline/publish .
|