Aeroklubben-IT/arbetsgrupp-live/build.sh

34 lines
No EOL
945 B
Bash
Executable file

#!/bin/bash
# On error, exit the script
set -e
# Build script for the Live Audience Response System
echo "🚀 Building Live Audience Response System..."
# Build the container image
echo "📦 Building Podman container..."
podman build -t aeroklubben-arbetsgrupp-live .
# Create data directory on host (for persistence)
echo "📁 Creating data directory..."
mkdir -p ./data
echo "✅ Build complete!"
echo ""
echo "To run the application:"
echo " podman run -d --restart=on-failure --name aeroklubben-arbetsgrupp-live -p 7000:3000 -v ./data:/app/data:Z aeroklubben-arbetsgrupp-live"
echo ""
echo "To view logs:"
echo " podman logs -f aeroklubben-arbetsgrupp-live"
echo ""
echo "To stop:"
echo " podman stop aeroklubben-arbetsgrupp-live"
echo ""
echo "To remove:"
echo " podman rm aeroklubben-arbetsgrupp-live"
echo ""
echo "Access URLs:"
echo " Form: https://aeroklubben.hostux.fr"
echo " Admin: https://aeroklubben.hostux.fr/admin"