diff --git a/Dockerfile b/Dockerfile index 92ede69..03dcd8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 176c35f..53c4150 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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 "$@"