Files
dns-updater/entrypoint.sh

15 lines
345 B
Bash

#!/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