diff options
author | terminaldweller <thabogre@gmail.com> | 2021-11-11 17:58:22 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-11-11 17:58:22 +0000 |
commit | 6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b (patch) | |
tree | 691ae46a355c35230cbba30c6f80e766a0d3158c /docker-entrypoint.sh | |
parent | update (diff) | |
download | devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.tar.gz devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.zip |
WIP
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x | docker-entrypoint.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100755 index 0000000..58d63ce --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +if [ "$SERVER_DEPLOYMENT_TYPE" = "deployment" ]; then + uvicorn main:app --host 0.0.0.0 --port 80 --ssl-certfile /certs/server.cert --ssl-keyfile /certs/server.key +elif [ "$SERVER_DEPLOYMENT_TYPE" = "test" ]; then + uvicorn main:app --host 0.0.0.0 --port 80 --ssl-certfile /certs/server.cert --ssl-keyfile /certs/server.key +fi |