Skip to content

Commit 7c8bd4c

Browse files
pauloxnetbmispelon
authored andcommitted
Remove Debian packages from Dockerfile
1 parent f47fa80 commit 7c8bd4c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ RUN apt-get update \
1515
git \
1616
libpq5 \
1717
make \
18-
netcat-openbsd \
1918
postgresql-client-15 \
2019
rsync \
21-
zlib1g \
2220
&& rm -rf /var/lib/apt/lists/*
2321

2422
ARG REQ_FILE=requirements/prod.txt
@@ -34,6 +32,7 @@ RUN apt-get update \
3432
zlib1g-dev \
3533
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
3634
&& apt-get purge --assume-yes --auto-remove \
35+
g++ \
3736
gcc \
3837
libc6-dev \
3938
libpq-dev \

docker-entrypoint.dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo "Waiting for postgres..."
44

5-
while ! nc -z db 5432; do
5+
while ! pg_isready -h db -p 5432 -q; do
66
sleep 0.1
77
done
88

0 commit comments

Comments
 (0)