Skip to content
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

[no ticket] Update libc dev #3059

Merged
merged 1 commit into from
Nov 27, 2024
Merged
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
19 changes: 14 additions & 5 deletions analytics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@ FROM python:3.13-slim AS base
RUN pip install --no-cache-dir poetry==1.8.2 --upgrade

RUN apt-get update \
# Remove existing packages before installing their never versions
&& apt-get remove --yes \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern (removing first) was necessary for postgres recently, so now I want to do it everywhere

build-essential \
libc-dev \
libpq-dev \
postgresql \
wget \
jq \
# Install security updates
# https://pythonspeed.com/articles/security-updates-in-docker/
&& apt-get upgrade --yes \
&& apt-get install --no-install-recommends --yes \
build-essential \
libpq-dev \
postgresql \
wget \
jq \
build-essential \
libc-dev \
libpq-dev \
postgresql \
wget \
jq \
# Reduce the image size by clear apt cached lists
# Complies with https://github.com/codacy/codacy-hadolint/blob/master/codacy-hadolint/docs/description/DL3009.md
&& rm -fr /var/lib/apt/lists/* \
Expand Down