FROM mcr.microsoft.com/powershell:latest

WORKDIR /

RUN pwsh -c 'Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted' \
 && pwsh -c 'Install-Module powershell-yaml' \
 && apt-get update \
 && apt-get -y install iptables \
 && rm -rf /var/cache/apt

COPY expose_forwards.ps1 docker/entrypoint.sh ./

ENTRYPOINT ["./entrypoint.sh"]