optimize for rpi

This commit is contained in:
2025-10-30 15:43:12 +01:00
parent 4c184b33cb
commit 532aef0f78
4 changed files with 343 additions and 21 deletions

View File

@@ -17,27 +17,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Set working directory
WORKDIR /app
# Create minimal requirements inline to ensure we use Pydantic v1
# which doesn't require Rust compilation
RUN cat > requirements.txt << 'EOF'
# Minimal requirements - no compilation needed
# Using Pydantic v1 which is pure Python (no Rust required)
fastapi==0.95.2
pydantic==1.10.9
uvicorn==0.22.0
httpx==0.24.1
icalendar==5.0.7
jinja2==3.1.2
apscheduler==3.10.1
pytz==2023.3
python-multipart==0.0.6
starlette==0.27.0
typing-extensions==4.6.3
python-dateutil==2.8.2
EOF
# Install Python dependencies - all pure Python or pre-built wheels
RUN pip install --no-cache-dir -r requirements.txt
# Install Python dependencies directly
# Using Pydantic v1 which doesn't require Rust compilation
RUN pip install --no-cache-dir \
fastapi==0.95.2 \
pydantic==1.10.9 \
uvicorn==0.22.0 \
httpx==0.24.1 \
icalendar==5.0.7 \
jinja2==3.1.2 \
apscheduler==3.10.1 \
pytz==2023.3 \
python-multipart==0.0.6 \
starlette==0.27.0 \
typing-extensions==4.6.3 \
python-dateutil==2.8.2
# Copy application files
COPY main.py .