From 6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 11 Nov 2021 21:28:22 +0330 Subject: WIP --- docker-entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 docker-entrypoint.sh (limited to 'docker-entrypoint.sh') 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 -- cgit v1.2.3