mirror of
https://github.com/xodivorce/isdowndetectordown.git
synced 2025-12-19 08:52:57 +05:30
refactor: added docker support and improved structure
This commit is contained in:
14
docker-entrypoint.sh
Normal file
14
docker-entrypoint.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Build or watch Tailwind CSS based on environment
|
||||
if [ "$ENVIRONMENT" = "development" ]; then
|
||||
echo "Starting Tailwind CSS in watch mode..."
|
||||
npm run dev &
|
||||
else
|
||||
echo "Building Tailwind CSS for production..."
|
||||
npm run build
|
||||
fi
|
||||
|
||||
# Execute the main command
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user