get udp example working

This commit is contained in:
Travis Shears 2026-04-12 21:56:05 +02:00
parent d2621e2aec
commit 4420b4e061
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
3 changed files with 56 additions and 5 deletions

14
backend/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /build
COPY Backend.csproj .
RUN dotnet restore
COPY . .
RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/runtime:10.0
WORKDIR /app
COPY --from=build /build/bin/Release/net10.0 .
ENV ENET_HOST=0.0.0.0
ENV ENET_PORT=7777
EXPOSE 7777/udp
ENTRYPOINT ["./Backend"]