A minimal Dockerized Flask app that serves a centered splash screen with TailwindCSS.
git clone https://github.com/FullBoreStudios/flask-splash-docker.git
cd flask-splash-docker
docker build -t flask-splash .
docker run -d --name flask-splash -p 5000:5000 flask-splashVisit: http://localhost:5000
fb redeploy fb-web-1 flask-splash-dockerThis assumes:
- Your server is defined in
fbcliunderfb-web-1 - The repo is cloned at
~/flask-splash-dockeron the server - Docker is installed and your app listens on port
5000
- SSH into your reverse proxy server:
- Create a new nginx config:
sudo nano /etc/nginx/sites-available/yourdomain.comPaste this:
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
location / {
proxy_pass http://192.168.22.112:5000; # Update with internal IP of your app host
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}- Enable the site and reload nginx:
sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginxsudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.comChoose the redirect option when prompted to force HTTPS.
- Flask app runs on port
5000by default - Static assets (like
logo.png) live in/static - Uses TailwindCSS via CDN (no local Node required)
- Great for splash pages, landing pages, and placeholder apps
MIT – free to use, fork, deploy, or strip for parts.