Change container start-up procedure.
This commit is contained in:
4
build
Executable file
4
build
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Build the Docker image
|
||||
docker build -t skoszewski/omada-dyndns-miab-proxy .
|
||||
14
entrypoint.sh
Normal file
14
entrypoint.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
LISTEN_ADDRESS="${LISTEN_ADDRESS:-0.0.0.0}"
|
||||
LISTEN_PORT="${LISTEN_PORT:-8080}"
|
||||
|
||||
cd /app
|
||||
|
||||
if [ -z "$CERT_FILE" ] || [ -z "$KEY_FILE" ]; then
|
||||
exec gunicorn --bind ${LISTEN_ADDRESS}:${LISTEN_PORT} app:app
|
||||
else
|
||||
exec gunicorn --bind ${LISTEN_ADDRESS}:${LISTEN_PORT} --certfile=${CERT_FILE} --keyfile=${KEY_FILE} app:app
|
||||
fi
|
||||
Reference in New Issue
Block a user