Add Docker stuff

This commit is contained in:
Robert Marshall 2022-04-10 13:41:28 +01:00
parent 8f3ea03d75
commit 09cdc84367
2 changed files with 16 additions and 31 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
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
FROM mcr.microsoft.com/dotnet/aspnet:3.1
WORKDIR /app
COPY --from=build-env /app/output .
ENTRYPOINT ["dotnet", "Robware.Api.Auth.dll"]