From 7c8bd4c7b83137912f082f1b930063f4dca44497 Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Sat, 4 Jan 2025 18:44:23 +0100 Subject: [PATCH] Remove Debian packages from Dockerfile --- Dockerfile | 3 +-- docker-entrypoint.dev.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 049d19c6a..695528c3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,10 +15,8 @@ RUN apt-get update \ git \ libpq5 \ make \ - netcat-openbsd \ postgresql-client-15 \ rsync \ - zlib1g \ && rm -rf /var/lib/apt/lists/* ARG REQ_FILE=requirements/prod.txt @@ -34,6 +32,7 @@ RUN apt-get update \ zlib1g-dev \ && python3 -m pip install --no-cache-dir -r ${REQ_FILE} \ && apt-get purge --assume-yes --auto-remove \ + g++ \ gcc \ libc6-dev \ libpq-dev \ diff --git a/docker-entrypoint.dev.sh b/docker-entrypoint.dev.sh index 515d5dac8..d3fd0f1f0 100755 --- a/docker-entrypoint.dev.sh +++ b/docker-entrypoint.dev.sh @@ -2,7 +2,7 @@ echo "Waiting for postgres..." -while ! nc -z db 5432; do +while ! pg_isready -h db -p 5432 -q; do sleep 0.1 done