aboutsummaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-11 17:58:22 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-11 17:58:22 +0000
commit6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b (patch)
tree691ae46a355c35230cbba30c6f80e766a0d3158c /docker-entrypoint.sh
parentupdate (diff)
downloaddevourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.tar.gz
devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.zip
WIP
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh7
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