FROM mcr.microsoft.com/dotnet/runtime:8.0
LABEL maintainer="djungelorm <djungelorm@users.noreply.github.com>"

RUN apt-get update && \
    apt-get install -y --no-install-recommends unzip && \
    rm -rf /var/lib/apt/lists/*

COPY TestServer.zip ./
RUN unzip TestServer.zip && rm TestServer.zip

EXPOSE 50000
EXPOSE 50001

ENTRYPOINT [ \
  "dotnet", "./TestServer.dll", \
  "--bind", "0.0.0.0", \
  "--rpc-port", "50000", \
  "--stream-port", "50001"]
CMD []
