fix: Resolve Coolify build failure by fixing requirements.txt PyPI versions, adding gunicorn, and using standard pip in Dockerfile

This commit is contained in:
Richard
2026-07-31 10:30:31 +02:00
parent 7c377937ea
commit c97abb7fb1
2 changed files with 21 additions and 21 deletions
+6 -6
View File
@@ -2,19 +2,19 @@ FROM python:3.11-slim
WORKDIR /app WORKDIR /app
# Install system dependencies # Install system dependencies needed for compiling C extensions (psycopg2, pillow, reportlab)
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \ gcc \
libpq-dev \ libpq-dev \
libjpeg-dev \
zlib1g-dev \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install uv for fast dependency management # Copy requirements and install
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Copy requirements and install via uv
COPY requirements.txt . COPY requirements.txt .
RUN uv pip install --system -r requirements.txt RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy backend application code # Copy backend application code
COPY . . COPY . .
+15 -15
View File
@@ -1,15 +1,15 @@
asgiref==3.12.1 Django>=5.0,<6.0
certifi==2026.7.22 djangorestframework>=3.14.0
charset-normalizer==3.4.9 django-cors-headers>=4.0.0
django==6.0.7 psycopg2-binary>=2.9.0
django-cors-headers==4.9.0 python-dotenv>=1.0.0
djangorestframework==3.17.1 pillow>=10.0.0
idna==3.18 reportlab>=4.0.0
pillow==12.3.0 requests>=2.31.0
pip==26.1.2 gunicorn>=21.2.0
psycopg2-binary==2.9.12 asgiref
python-dotenv==1.2.2 certifi
reportlab==5.0.0 charset-normalizer
requests==2.34.2 idna
sqlparse==0.5.5 sqlparse
urllib3==2.7.0 urllib3