Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ WORKDIR /source
RUN apk add --no-cache clang gcc musl-dev zlib-dev

COPY *.csproj .
RUN dotnet restore -r linux-musl-x64
RUN dotnet restore -r linux-musl-arm64

COPY . .
RUN dotnet publish -c release -o /app -r linux-musl-x64 --no-restore LanPlayServer.csproj
RUN dotnet publish -c release -o /app -r linux-musl-arm64 --no-restore LanPlayServer.csproj

FROM alpine:latest
WORKDIR /app
Expand Down
3 changes: 2 additions & 1 deletion LanPlayServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
<TargetFramework>net8.0</TargetFramework>
<DefineConstants Condition=" '$(ExtraDefineConstants)' != '' ">$(DefineConstants);$(ExtraDefineConstants)</DefineConstants>
<PublishAot>true</PublishAot>
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NetCoreServer" Version="8.0.7" />
<PackageReference Include="NRedisStack" Version="0.11.0" />
<PackageReference Include="NRedisStack" Version="0.13.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading