Change container start-up procedure.

This commit is contained in:
2025-12-28 21:00:53 +01:00
parent d77801788f
commit 14d90d34aa
2 changed files with 18 additions and 0 deletions

4
build Executable file
View 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
View 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