Skip to content

Remove Debian packages from Dockerfile #1861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading