diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..438f8ba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +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"] \ No newline at end of file diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh new file mode 100755 index 0000000..703d18f --- /dev/null +++ b/docker/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +while :; do + pwsh -File expose_forwards.ps1 + sleep 33 +done \ No newline at end of file