12 lines
454 B
Docker
12 lines
454 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:3.1 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
|
|
WORKDIR /app
|
|
COPY --from=build-env /app/output .
|
|
ENTRYPOINT ["dotnet", "Robware.Api.Blog.dll"]
|