8000 fix(docker): resolve Python 3.12 build compatibility issues by karlhendrik · Pull Request #132 · p1ngul1n0/blackbird · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(docker): resolve Python 3.12 build compatibility issues #132

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual environments
venv/
env/
ENV/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Git
.git/
.gitignore

# Docker
Dockerfile*
docker-compose*

# Documentation
docs/
*.md
README*

# Tests
tests/

# Logs
*.log
21 changes: 20 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
FROM python:3.12-slim

COPY . .
# Install system dependencies and build tools
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*

# Upgrade pip and install setuptools
RUN python3 -m pip install --upgrade pip setuptools wheel

# Set working directory
WORKDIR /app

# Copy requirements first for better caching
COPY requirements.txt .

# Install Python dependencies
RUN python3 -m pip install -r requirements.txt

# Copy the rest of the application
COPY . .

ENTRYPOINT ["python3","blackbird.py"]
2 changes: 1 addition & 1 deletion requirements.txt
43E5
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MarkupSafe==2.1.5
mdurl==0.1.2
multidict==6.1.0
murmurhash==1.0.13
numpy==1.24.4
numpy==1.26.4
packaging==25.0
pillow==10.4.0
preshed==3.0.10
Expand Down
0