updated terraform files
This commit is contained in:
4
dotnet8-minimal-api/.dockerignore
Normal file
4
dotnet8-minimal-api/.dockerignore
Normal file
@@ -0,0 +1,4 @@
|
||||
bin/
|
||||
obj/
|
||||
*.md
|
||||
*.zip
|
13
dotnet8-minimal-api/Dockerfile
Normal file
13
dotnet8-minimal-api/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# Build Stage
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/*.csproj ./
|
||||
RUN dotnet restore
|
||||
COPY src/ ./
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
# Runtime Stage
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /app ./
|
||||
ENTRYPOINT ["dotnet", "SkennenAPI.dll"]
|
4
dotnet8-minimal-api/src/Program.cs
Normal file
4
dotnet8-minimal-api/src/Program.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
var app = builder.Build();
|
||||
app.MapGet("/", () => Results.Content("<h1 style='font-family:cursive;'>Hello from Jacques Ingram at Adam & Eve!</h1>", "text/html"));
|
||||
app.Run();
|
7
dotnet8-minimal-api/src/SkennenAPI.csproj
Normal file
7
dotnet8-minimal-api/src/SkennenAPI.csproj
Normal file
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user