Browse Source

run pwsh command directly without entrypoint

master
lub 2 years ago
parent
commit
cc4b970de2
3 changed files with 2 additions and 9 deletions
  1. +2
    -2
      Dockerfile
  2. +0
    -0
      docker-compose.yml
  3. +0
    -7
      docker/entrypoint.sh

+ 2
- 2
Dockerfile View File

@ -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"]

docker/docker-compose.yml → docker-compose.yml View File


+ 0
- 7
docker/entrypoint.sh View File

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

Loading…
Cancel
Save