updated to add images
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -2,16 +2,25 @@ FROM python:3.11-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install system dependencies, including Rust and build tools
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libreoffice poppler-utils ffmpeg \
|
libreoffice poppler-utils ffmpeg \
|
||||||
libffi-dev libssl-dev g++ curl libjpeg-dev zlib1g-dev \
|
libffi-dev libssl-dev g++ curl libjpeg-dev zlib1g-dev \
|
||||||
|
libxml2-dev libxslt-dev build-essential cargo \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Debug: Verify Rust installation
|
||||||
|
RUN rustc --version && cargo --version
|
||||||
|
|
||||||
|
# Copy application files
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
# Upgrade pip and install Python dependencies (using piwheels for ARM)
|
||||||
RUN pip install gunicorn
|
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
|
EXPOSE 5000
|
||||||
|
|
||||||
|
# Start the application
|
||||||
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
|
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
|
||||||
Binary file not shown.
Reference in New Issue
Block a user