Apply migrations in Docker container
This commit is contained in:
@@ -36,6 +36,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
# Copy source code
|
# Copy source code
|
||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
COPY scripts/ scripts/
|
COPY scripts/ scripts/
|
||||||
|
COPY db/ db/
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/vk-parser-entrypoint
|
COPY docker-entrypoint.sh /usr/local/bin/vk-parser-entrypoint
|
||||||
RUN chmod +x /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
|
&& mkdir -p /var/lib/telegram-bot-api /tmp/telegram-bot-api
|
||||||
|
|||||||
@@ -27,4 +27,6 @@ else
|
|||||||
echo "TELEGRAM_API_ID/TELEGRAM_API_HASH are not set; local Telegram Bot API is disabled"
|
echo "TELEGRAM_API_ID/TELEGRAM_API_HASH are not set; local Telegram Bot API is disabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
python /app/scripts/apply_migrations.py
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user