Update all the things

This commit is contained in:
Robert Marshall 2023-02-18 14:02:11 +00:00
parent 0460f8c945
commit 4999bf4492
18 changed files with 227 additions and 99 deletions

View file

@ -1,12 +1,9 @@
FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /app
COPY . ./
RUN ./build.sh
RUN sed -i "s/<DatabaseConnectionString>/${ConnectionString}/g" output/appsettings.json
RUN sed -i "s/<AuthEndpoint>/${AuthEndpoint}/g" output/appsettings.json
RUN sed -i "s/<AuthApiKey>/${AuthApiKey}/g" output/appsettings.json
FROM mcr.microsoft.com/dotnet/aspnet:3.1
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build-env /app/output .
ENTRYPOINT ["dotnet", "Robware.Api.Blog.dll"]