29 lines
650 B
Text
29 lines
650 B
Text
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||
|
|
||
|
WORKDIR /src
|
||
|
|
||
|
COPY *.sln .
|
||
|
COPY src/Nyanlabs.Umogen.Core/*.csproj src/Nyanlabs.Umogen.Core/
|
||
|
COPY src/Nyanlabs.Umogen.Server/*.csproj src/Nyanlabs.Umogen.Server/
|
||
|
|
||
|
COPY test/Nyanlabs.Umogen.WebTests/*.csproj test/Nyanlabs.Umogen.WebTests/
|
||
|
COPY test/Nyanlabs.Umogen.CoreTests/*.csproj test/Nyanlabs.Umogen.CoreTests/
|
||
|
|
||
|
RUN dotnet restore
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN dotnet publish -c Release -o /build
|
||
|
|
||
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||
|
|
||
|
RUN apt update -y
|
||
|
RUN apt install -y libreoffice-writer-nogui
|
||
|
|
||
|
COPY --from=build /build /app
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
EXPOSE 8080
|
||
|
ENTRYPOINT [ "dotnet", "Nyanlabs.Umogen.Server.dll" ]
|