* Added PublishTrimmed to Impostor.Server
* Disabled trimming in CI
* Fixed Dockerfile for trimming
- name: Build Impostor.Client
run: msbuild ./src/Impostor.Client/Impostor.Client.csproj /p:Configuration=Release
- name: Build Impostor.Server
- run: dotnet build --no-restore -c Release -f netcoreapp3.1 ./src/Impostor.Server/Impostor.Server.csproj
+ run: dotnet build --no-restore -c Release -f netcoreapp3.1 ./src/Impostor.Server/Impostor.Server.csproj -p:PublishTrimmed=false
- name: Test
run: dotnet test --no-restore -v normal -f netcoreapp3.1 ./src
deploy:
# Copy everything else.
COPY submodules/. ./submodules/
COPY src/. ./src/
-RUN dotnet publish -c release -o /app -f netcoreapp3.1 -r linux-musl-x64 --self-contained false --no-restore ./src/Impostor.Server/Impostor.Server.csproj
+RUN dotnet publish -c release -o /app -r linux-musl-x64 --no-restore ./src/Impostor.Server/Impostor.Server.csproj
# Final image.
-FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
+FROM mcr.microsoft.com/dotnet/core/runtime-deps:3.1-alpine
WORKDIR /app
COPY --from=build /app ./
EXPOSE 22023/udp
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64;linux-musl-x64</RuntimeIdentifiers>
+ <PublishTrimmed>true</PublishTrimmed>
<AssemblyTitle>Impostor.Server</AssemblyTitle>
<Product>Impostor.Server</Product>
<Copyright>Copyright © AeonLucid 2020</Copyright>