Browse Source

run pwsh command directly without entrypoint

master
lub 3 years ago
parent
commit
cc4b970de2
  1. 4
      Dockerfile
  2. 0
      docker-compose.yml
  3. 7
      docker/entrypoint.sh

4
Dockerfile

@ -13,6 +13,6 @@ RUN pwsh -c 'Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted' \
&& apt-get -y install iptables docker.io \
&& rm -rf /var/cache/apt
COPY expose_forwards.ps1 docker/entrypoint.sh ./
COPY expose_forwards.ps1 ./
ENTRYPOINT ["./entrypoint.sh"]
CMD ["pwsh", "-File", "expose_forwards.ps1"]

0
docker/docker-compose.yml → docker-compose.yml

7
docker/entrypoint.sh

@ -1,7 +0,0 @@
#!/bin/bash
set -e
while :; do
pwsh -File expose_forwards.ps1
sleep 33
done
Loading…
Cancel
Save