Update all the things
This commit is contained in:
parent
0460f8c945
commit
4999bf4492
18 changed files with 227 additions and 99 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue