You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
449 B
Docker
19 lines
449 B
Docker
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"] |