diff --git a/Dockerfile b/Dockerfile index b86140e..ccdb443 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,25 @@ FROM python:3.11-slim WORKDIR /app +# Install system dependencies, including Rust and build tools RUN apt-get update && apt-get install -y \ libreoffice poppler-utils ffmpeg \ libffi-dev libssl-dev g++ curl libjpeg-dev zlib1g-dev \ + libxml2-dev libxslt-dev build-essential cargo \ && rm -rf /var/lib/apt/lists/* +# Debug: Verify Rust installation +RUN rustc --version && cargo --version + +# Copy application files COPY . /app -RUN pip install --no-cache-dir -r requirements.txt -RUN pip install gunicorn +# Upgrade pip and install Python dependencies (using piwheels for ARM) +RUN python -m pip install --upgrade pip && \ + pip install --no-cache-dir --extra-index-url https://www.piwheels.org/simple -r requirements.txt +# Expose the application port EXPOSE 5000 +# Start the application CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"] \ No newline at end of file diff --git a/__pycache__/app.cpython-311.pyc b/__pycache__/app.cpython-311.pyc index a18e50a..6bba5d1 100644 Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ