diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5,12 +5,15 @@ COPY . ./ RUN dotnet restore RUN dotnet tool restore RUN dotnet libman restore -RUN dotnet ef database update +RUN dotnet ef database update --context DataContext +RUN dotnet ef database update --context IdentityContext + RUN dotnet publish -c Release -o out FROM mcr.microsoft.com/dotnet/aspnet:6.0 EXPOSE 5000 WORKDIR /app COPY --from=build /app/out . +COPY --from=build /app/Database ./Database ENV ASPNETCORE_ENVIRONMENT Production ENTRYPOINT [ "dotnet", "MyDarling.dll", "--urls=http://0.0.0.0:5000" ]
\ No newline at end of file |