From 10935df972889590b092553f8c1980c8d42aa69c Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 17 Nov 2021 20:34:32 -0500 Subject: [PATCH] Update Dockerfile for .NET 6.0 --- ProjectLighthouse.sln.DotSettings | 6 ++++++ ProjectLighthouse/Dockerfile | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings index 9a6134aa..779d9d6e 100644 --- a/ProjectLighthouse.sln.DotSettings +++ b/ProjectLighthouse.sln.DotSettings @@ -77,6 +77,7 @@ MM NAT NP + PSP <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="aaBb" /></Policy> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> @@ -108,15 +109,20 @@ True True True + True True True True True + True True True True True True + True + True + True True True True \ No newline at end of file diff --git a/ProjectLighthouse/Dockerfile b/ProjectLighthouse/Dockerfile index 3cbdb7a1..cd416564 100644 --- a/ProjectLighthouse/Dockerfile +++ b/ProjectLighthouse/Dockerfile @@ -1,9 +1,8 @@ -FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app -EXPOSE 80 -EXPOSE 443 +EXPOSE 10060 -FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["ProjectLighthouse/ProjectLighthouse.csproj", "ProjectLighthouse/"] RUN dotnet restore "ProjectLighthouse/ProjectLighthouse.csproj"