mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2025-04-22 11:52:28 -06:00
Refactor Dockerfile and entrypoint script; add index.html.template and update example.env
8 lines
330 B
Bash
8 lines
330 B
Bash
#!/bin/sh
|
|
# Process index.html.template to create index.html
|
|
# Adjust the path if your template is located somewhere else
|
|
envsubst < /templates/index.html.template > /templates/index.html
|
|
|
|
# Start Gunicorn; using an environment variable for workers (default is 3)
|
|
exec gunicorn --bind 0.0.0.0:8000 app:app --workers ${WORKERS:-3}
|