ARG VERSION=10.0.100-preview.5
FROM mcr.microsoft.com/dotnet/sdk:$VERSION

RUN apt update
RUN apt install curl -y

# Add tools to Path.
RUN echo 'export PATH="$PATH:$HOME/.dotnet/tools/"' | tee -a "$HOME/.bashrc" > /dev/null
# Install NugetForUnity tool: https://github.com/GlitchEnzo/NuGetForUnity
RUN dotnet tool install --global NuGetForUnity.Cli

COPY nuget_utils.sh /nuget_utils.sh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
