???: did some docker stuff. The Project can run, but the db needs to be linked from outside, or it does not work.

This commit is contained in:
limited_dev 2023-02-12 21:38:00 +01:00
parent db1d4822d4
commit f0fbb11824
4 changed files with 13 additions and 4 deletions

View file

@ -16,6 +16,4 @@ RUN dotnet publish "ImageBoardServerApp/ImageBoardServerApp.csproj" -c Release -
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN dotnet tool install --global dotnet-ef
RUN dotnet ef database update
ENTRYPOINT ["dotnet", "ImageBoardServerApp.dll"]