Skip to content

Commit

Permalink
Remove Debian packages from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloxnet authored and bmispelon committed Jan 17, 2025
1 parent f47fa80 commit 7c8bd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c8bd4c

Please sign in to comment.