Compare commits
2 Commits
8d09a8a52f
...
cf55b15745
| Author | SHA1 | Date | |
|---|---|---|---|
| cf55b15745 | |||
| 33e5095607 |
@@ -3,7 +3,7 @@ FROM python:3.11-slim
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt && pip cache purge
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
# ffmpeg: video/audio processing for media handling
|
# ffmpeg: video/audio processing for media handling
|
||||||
@@ -18,11 +18,29 @@ RUN apt-get update && apt-get install -y \
|
|||||||
gnupg \
|
gnupg \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& rm -rf /usr/share/doc
|
||||||
|
|
||||||
# Install Playwright browsers with system dependencies (for UNO automation)
|
# Install Playwright browsers with system dependencies (for UNO automation)
|
||||||
RUN playwright install --with-deps chromium
|
RUN playwright install --with-deps chromium
|
||||||
|
|
||||||
|
# Remove unused system packages to reduce image size
|
||||||
|
# Note: Playwright installs many dependencies; we remove what we can safely
|
||||||
|
RUN apt-get remove -y \
|
||||||
|
pocketsphinx-en-us \
|
||||||
|
pocketsphinx \
|
||||||
|
libflite1 \
|
||||||
|
libpocketsphinx3 \
|
||||||
|
mesa-vulkan-drivers \
|
||||||
|
mesa-va-drivers \
|
||||||
|
mesa-vdpau-drivers \
|
||||||
|
libvulkan1 \
|
||||||
|
|| true && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get install -y libgl1 libglib2.0-0 && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Docker CLI and docker compose plugin so the bot can build/create the face detector container
|
# Install Docker CLI and docker compose plugin so the bot can build/create the face detector container
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \
|
||||||
@@ -35,6 +53,7 @@ RUN set -eux; \
|
|||||||
COPY bot.py .
|
COPY bot.py .
|
||||||
COPY server_manager.py .
|
COPY server_manager.py .
|
||||||
COPY command_router.py .
|
COPY command_router.py .
|
||||||
|
COPY config.py .
|
||||||
COPY utils /app/utils
|
COPY utils /app/utils
|
||||||
COPY commands /app/commands
|
COPY commands /app/commands
|
||||||
COPY memory /app/memory
|
COPY memory /app/memory
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
discord.py
|
discord.py
|
||||||
aiohttp
|
aiohttp
|
||||||
requests
|
requests
|
||||||
langchain-core
|
|
||||||
langchain-text-splitters
|
|
||||||
faiss-cpu
|
|
||||||
langchain-community
|
|
||||||
aiofiles
|
aiofiles
|
||||||
apscheduler
|
apscheduler
|
||||||
fastapi
|
fastapi
|
||||||
@@ -17,9 +13,7 @@ python-multipart
|
|||||||
Pillow
|
Pillow
|
||||||
opencv-contrib-python
|
opencv-contrib-python
|
||||||
numpy
|
numpy
|
||||||
scikit-learn
|
|
||||||
transformers
|
transformers
|
||||||
torch
|
|
||||||
PyNaCl>=1.5.0
|
PyNaCl>=1.5.0
|
||||||
websockets>=12.0
|
websockets>=12.0
|
||||||
discord-ext-voice-recv
|
discord-ext-voice-recv
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ import aiohttp
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import globals
|
import globals
|
||||||
from langchain_community.vectorstores import FAISS
|
# Langchain imports below are only used in commented-out code
|
||||||
from langchain_text_splitters import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
# from langchain_community.vectorstores import FAISS
|
||||||
from langchain_core.documents import Document
|
# from langchain_text_splitters import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
||||||
|
# from langchain_core.documents import Document
|
||||||
from utils.logger import get_logger
|
from utils.logger import get_logger
|
||||||
|
|
||||||
logger = get_logger('core')
|
logger = get_logger('core')
|
||||||
|
|||||||
Reference in New Issue
Block a user