moved dockerfile
This commit is contained in:
parent
df1ac86636
commit
db1d4822d4
1 changed files with 4 additions and 3 deletions
|
@ -8,13 +8,14 @@ WORKDIR /src
|
|||
COPY ["ImageBoardServerApp/ImageBoardServerApp.csproj", "ImageBoardServerApp/"]
|
||||
RUN dotnet restore "ImageBoardServerApp/ImageBoardServerApp.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/BlazorServerTest"
|
||||
RUN dotnet build "BlazorServerTest.csproj" -c Release -o /app/build
|
||||
RUN dotnet build "ImageBoardServerApp/ImageBoardServerApp.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "ImageBoardServerApp.csproj" -c Release -o /app/publish
|
||||
RUN dotnet publish "ImageBoardServerApp/ImageBoardServerApp.csproj" -c Release -o /app/publish
|
||||
|
||||
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"]
|
Loading…
Reference in a new issue