We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f47fa80 commit 7c8bd4cCopy full SHA for 7c8bd4c
Dockerfile
@@ -15,10 +15,8 @@ RUN apt-get update \
15
git \
16
libpq5 \
17
make \
18
- netcat-openbsd \
19
postgresql-client-15 \
20
rsync \
21
- zlib1g \
22
&& rm -rf /var/lib/apt/lists/*
23
24
ARG REQ_FILE=requirements/prod.txt
@@ -34,6 +32,7 @@ RUN apt-get update \
34
32
zlib1g-dev \
35
33
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
36
&& apt-get purge --assume-yes --auto-remove \
+ g++ \
37
gcc \
38
libc6-dev \
39
libpq-dev \
docker-entrypoint.dev.sh
@@ -2,7 +2,7 @@
2
3
echo "Waiting for postgres..."
4
5
-while ! nc -z db 5432; do
+while ! pg_isready -h db -p 5432 -q; do
6
sleep 0.1
7
done
8
0 commit comments