Skip to content
Merged
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
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM python:3.10-slim
FROM python:3.9-slim

WORKDIR /app

# Install system dependencies
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
python3-dev \
Expand All @@ -15,9 +14,10 @@ RUN apt-get update && apt-get install -y \
# Copy requirements and install dependencies
COPY flask_backend/requirements.txt .

# Install pymobiledevice3 directly from GitHub to ensure we get the latest version with all modules
# Install pymobiledevice3 version 2.30.0 and construct 2.10.69 to ensure JIT functionality works
# This fixes the "No such command 'start-quic-tunnel'" error in newer versions
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir git+https://github.com/doronz88/pymobiledevice3.git
pip install --no-cache-dir pymobiledevice3==2.30.0 construct==2.10.69

# Copy application code
COPY flask_backend/ .
Expand Down
7 changes: 6 additions & 1 deletion flask_backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ flask-jwt-extended==4.5.2
flask-cors==4.0.0
gunicorn==21.2.0
cryptography==41.0.3
pymobiledevice3==2.0.0
# Pinned to version 2.30.0 to ensure JIT functionality works
# Version 2.31.0+ breaks the 'start-quic-tunnel' command
pymobiledevice3==2.30.0
# Required for pymobiledevice3 2.30.0 to work properly
# Newer versions cause 'stream.tell()' errors
construct==2.10.69
Loading