add compose.yaml

This commit is contained in:
Nick Seguin 2023-12-10 21:19:35 -06:00
parent fe436ecd1b
commit 04808a43be
4 changed files with 18 additions and 0 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
AZURE_APP_CONFIGURATION_CONNECTION_STRING=
AZURE_TENANT_ID=
AZURE_CLIENT_ID=
AZURE_CLIENT_SECRET=

View File

@ -58,4 +58,8 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY --from=build /app/out ./
# authenticate with Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
ENTRYPOINT ["dotnet", "NSeguin.Dev.Web.dll"]

9
compose.yaml Normal file
View File

@ -0,0 +1,9 @@
version: '3.8'
services:
web:
image: nseguin42/website:latest
env_file:
- .env
ports:
- 42080:25070
entrypoint: dotnet NSeguin.Dev.Web.dll --urls=http://localhost:25070

View File

@ -1,3 +1,4 @@
using Azure;
using Azure.Identity;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;