Skip to content

Stop shipping build-only deps and drop deprecated apt-key#8

Open
soulgalore wants to merge 1 commit into
mainfrom
fix-builddeps-aptkey
Open

Stop shipping build-only deps and drop deprecated apt-key#8
soulgalore wants to merge 1 commit into
mainfrom
fix-builddeps-aptkey

Conversation

@soulgalore
Copy link
Copy Markdown
Member

The buildDeps shell variable was set in one RUN and referenced in
another, so it was empty by the time apt-get purge --auto-remove
ran — meaning gnupg, wget, curl, software-properties-common and
friends were never actually removed and have been riding along in
every published image. Moving the list to a Dockerfile-level ARG
puts it back in scope for the purge. ca-certificates is dropped from
that list so the runtime install on the line below keeps it around
for TLS.

The Google Chrome signing key was still being added with apt-key,
which is deprecated and removed in newer Ubuntu releases. Switching
to the keyrings + signed-by= pattern (the same one already used for
Mozilla) keeps the amd64 build working as base images move forward.

Co-authored-by: Claude noreply@anthropic.com

  The buildDeps shell variable was set in one RUN and referenced in
  another, so it was empty by the time apt-get purge --auto-remove
  ran — meaning gnupg, wget, curl, software-properties-common and
  friends were never actually removed and have been riding along in
  every published image. Moving the list to a Dockerfile-level ARG
  puts it back in scope for the purge. ca-certificates is dropped from
  that list so the runtime install on the line below keeps it around
  for TLS.

  The Google Chrome signing key was still being added with apt-key,
  which is deprecated and removed in newer Ubuntu releases. Switching
  to the keyrings + signed-by= pattern (the same one already used for
  Mozilla) keeps the amd64 build working as base images move forward.

  Co-authored-by: Claude noreply@anthropic.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant