docker image fix

This commit is contained in:
2025-09-18 16:37:45 +09:00
parent 35a977536b
commit 77ae161b1a
4 changed files with 36 additions and 2 deletions

View File

@@ -3,6 +3,24 @@
echo "🚀 Starting Telegram Tinder Bot..."
# Check for locales directory
if [ ! -d "dist/locales" ]; then
echo "⚠️ Locales directory not found in dist/locales"
echo "🔍 Checking source directory structure..."
ls -la dist/ || echo "Error listing dist directory"
# If src/locales exists, copy it to dist/locales
if [ -d "src/locales" ]; then
echo "📂 Found src/locales directory. Copying to dist/locales..."
mkdir -p dist/locales
cp -R src/locales/* dist/locales/
echo "✅ Locales copied successfully"
else
echo "❌ src/locales directory not found either. Creating empty locales directory..."
mkdir -p dist/locales
fi
fi
# Wait for database to be ready
echo "⏳ Waiting for database to be ready..."
sleep 5