robot_cleaning_game/backend/Dockerfile

14 lines
327 B
Docker

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"]