add initial complete webui, more ai commands for moderation, add api

This commit is contained in:
Aidan 2025-07-05 14:36:17 -04:00
parent 19e794e34c
commit 173d4e7a52
112 changed files with 8176 additions and 780 deletions

27
Dockerfile Normal file → Executable file
View file

@ -1,18 +1,37 @@
FROM oven/bun
# Install ffmpeg and other deps
RUN apt-get update && apt-get install -y ffmpeg git && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
supervisor \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY package*.json ./
RUN bun install
RUN bun i
COPY webui/package*.json ./webui/
WORKDIR /usr/src/app/webui
RUN bun install
WORKDIR /usr/src/app
COPY . .
RUN chmod +x /usr/src/app/src/plugins/yt-dlp/yt-dlp
WORKDIR /usr/src/app/webui
RUN bun run build
RUN chmod +x /usr/src/app/telegram/plugins/yt-dlp/yt-dlp
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
VOLUME /usr/src/app/.env
CMD ["bun", "start"]
EXPOSE 3000
ENV PYTHONUNBUFFERED=1
ENV BUN_LOG_LEVEL=info
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]