Skip to content

Commit

Permalink
Reverting to .NET 6 to work around a docker build issue...
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrettgilliam committed Jan 25, 2023
1 parent be08fb9 commit 6b3340a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Website/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["Website.csproj", "."]
RUN dotnet restore "Website.csproj"
Expand Down
6 changes: 3 additions & 3 deletions src/Website/Models/AppSecrets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ namespace Website.Models;
public sealed class AppSecrets
{
[Required]
required public string ReCaptchaSecret { get; init; }
public string ReCaptchaSecret { get; init; } = string.Empty;

[Required]
required public string EmailLink { get; init; }
public string EmailLink { get; init; } = string.Empty;

[Required, Url]
required public string ResumeLink { get; init; }
public string ResumeLink { get; init; } = string.Empty;
}
2 changes: 1 addition & 1 deletion src/Website/Website.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
Expand Down

0 comments on commit 6b3340a

Please sign in to comment.