Apply migrations in Docker container

This commit is contained in:
Your Name
2026-08-03 15:54:54 +05:00
parent 6ae61b0302
commit fecd38c761
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY src/ src/
COPY scripts/ scripts/
COPY db/ db/
COPY docker-entrypoint.sh /usr/local/bin/vk-parser-entrypoint
RUN chmod +x /usr/local/bin/vk-parser-entrypoint \
&& mkdir -p /var/lib/telegram-bot-api /tmp/telegram-bot-api
+2
View File
@@ -27,4 +27,6 @@ else
echo "TELEGRAM_API_ID/TELEGRAM_API_HASH are not set; local Telegram Bot API is disabled"
fi
python /app/scripts/apply_migrations.py
exec "$@"