refactor: Switch backend Dockerfile to use Alpine package manager
Some checks failed
Deploy to Production, build images and push to Gitea Registry / build_and_push (pull_request) Failing after 19s

This commit is contained in:
mohamad 2025-06-01 15:44:09 +02:00
parent a51b18e8f5
commit 392a2ae049

View File

@ -9,12 +9,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_DISABLE_PIP_VERSION_CHECK=1
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \ # Use apk for Alpine Linux instead of apt-get
RUN apk add --no-cache \
gcc \ gcc \
build-essential \ build-essential \
libpq-dev \ libpq-dev \
curl \ curl
&& rm -rf /var/lib/apt/lists/*
# Create non-root user # Create non-root user
RUN groupadd -r appuser && useradd -r -g appuser appuser RUN groupadd -r appuser && useradd -r -g appuser appuser