Add a Dockerfile
This commit is contained in:
parent
22ebafc568
commit
dc23165382
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -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/<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"]
|
Loading…
Add table
Add a link
Reference in a new issue