Update entrypoint.sh
authorMed <redacted>
Sat, 9 Sep 2023 15:44:54 +0000 (11:44 -0400)
committerGitHub <redacted>
Sat, 9 Sep 2023 15:44:54 +0000 (11:44 -0400)
commit39c740eaf340750feed0d1ad601749641e1904bf
tree7f91be872cd38fd04f892aa824eb3e0d3cf44127
parentb19062de8a580c7c6a309b1c142d0fb570039abb
Update entrypoint.sh

Added a check to verify is the .sh is starting with a user set by docker, if it is, it skip the permission setup and gosu. If not, it does it's old behaviors.

Also re-introduced the PORT environment variable. Not everyone will run that program on docker, and conflict may arise with others program, putting aside the fact that 8080 is commonly used, begin able to change the PORT without the needed of recompiling everything is useful.
entrypoint.sh
git clone https://git.99rst.org/PROJECT