FROM mcr.microsoft.com/powershell:preview-debian-buster-slim VOLUME /stacks ENV CHAIN="SWARM-NAT" \ STACKS="/stacks" WORKDIR / # install dependencies RUN pwsh -c 'Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted' \ && pwsh -c 'Install-Module powershell-yaml' \ && apt-get update \ && apt-get -y install iptables docker.io \ && rm -rf /var/cache/apt COPY expose_forwards.ps1 ./ CMD ["pwsh", "-File", "expose_forwards.ps1"]