umap/docker/entrypoint.sh
Alexis Métaireau 3e0a6b8f10
Update the Dockerfile to expose websockets
The Dockerfile now uses ASGI by default (via uvicorn) and embeds a
redis server that is used for the synchronization.
2025-03-14 15:29:17 +01:00

14 lines
320 B
Bash
Executable file

#!/usr/bin/env bash
set -eo pipefail
source /venv/bin/activate
service redis-server start
# collect static files
umap collectstatic --noinput
# now wait for the database
umap wait_for_database
# then migrate the database
umap migrate
# run the server
exec uvicorn --proxy-headers --no-access-log umap.asgi:application