diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9121bcf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build-env +WORKDIR /app +COPY . ./ +RUN ./build.sh +RUN sed -i "s//${ConnectionString}/g" output/appsettings.json +RUN sed -i "s//${AuthEndpoint}/g" output/appsettings.json +RUN sed -i "s//${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"]