-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Refactor GUI to modern HTML/CSS and improve Docker setup #2456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
CesarPetrescu
wants to merge
3
commits into
elebumm:master
from
CesarPetrescu:claude/integrate-qwen3-tts-MzKX2
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,67 @@ | ||
| FROM python:3.10.14-slim | ||
|
|
||
| RUN apt update | ||
| RUN apt-get install -y ffmpeg | ||
| RUN apt install python3-pip -y | ||
| # Set environment variables | ||
| ENV PYTHONDONTWRITEBYTECODE=1 | ||
| ENV PYTHONUNBUFFERED=1 | ||
| ENV REDDIT_BOT_GUI=true | ||
|
|
||
| RUN mkdir /app | ||
| ADD . /app | ||
| # Install system dependencies | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ffmpeg \ | ||
| curl \ | ||
| wget \ | ||
| gnupg \ | ||
| libglib2.0-0 \ | ||
| libnss3 \ | ||
| libnspr4 \ | ||
| libatk1.0-0 \ | ||
| libatk-bridge2.0-0 \ | ||
| libcups2 \ | ||
| libdrm2 \ | ||
| libdbus-1-3 \ | ||
| libxcb1 \ | ||
| libxkbcommon0 \ | ||
| libx11-6 \ | ||
| libxcomposite1 \ | ||
| libxdamage1 \ | ||
| libxext6 \ | ||
| libxfixes3 \ | ||
| libxrandr2 \ | ||
| libgbm1 \ | ||
| libpango-1.0-0 \ | ||
| libcairo2 \ | ||
| libasound2 \ | ||
| libatspi2.0-0 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Create app directory | ||
| WORKDIR /app | ||
| RUN pip install -r requirements.txt | ||
|
|
||
| CMD ["python3", "main.py"] | ||
| # Copy requirements first for better caching | ||
| COPY requirements.txt . | ||
|
|
||
| # Install Python dependencies | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| # Install Playwright browsers | ||
| RUN playwright install chromium | ||
| RUN playwright install-deps chromium | ||
|
|
||
| # Download spaCy language model | ||
| RUN python -m spacy download en_core_web_sm | ||
|
|
||
| # Copy application code | ||
| COPY . . | ||
|
|
||
| # Create necessary directories | ||
| RUN mkdir -p assets/temp assets/backgrounds/video assets/backgrounds/audio results | ||
|
|
||
| # Expose ports | ||
| EXPOSE 5000 | ||
|
|
||
| # Set entrypoint | ||
| COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
| RUN chmod +x /docker-entrypoint.sh | ||
|
|
||
| ENTRYPOINT ["/docker-entrypoint.sh"] | ||
| CMD ["python", "main.py"] | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
spacymodel download in the Dockerfile doesn't verify if the download was successful. If the download fails silently, the application may crash at runtime when trying to use the model. Consider adding error checking after the download command.