Skip to content

Comments

Use full image for builder stage; update to bullseye#675

Merged
yannickwurm merged 1 commit intowurmlab:masterfrom
nathanweeks:issue-673
Aug 9, 2023
Merged

Use full image for builder stage; update to bullseye#675
yannickwurm merged 1 commit intowurmlab:masterfrom
nathanweeks:issue-673

Conversation

@nathanweeks
Copy link
Contributor

Address issue #673 by using a full (rather than slim) image for the builder stage. An alternative would be adding g++ to the list of installed packages:

# Install packages required for building gems with C extensions.
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc make patch && rm -rf /var/lib/apt/lists/*

However, using the full base image (which contains Debian packages needed to build ruby extensions, obviating the need to explicitly install such packages via the Dockerfile) seems less likely to fail in the future due to missing Debian packages dependencies that extensions may have.

It's also probably worth updating from buster to bullseye, as support for new Docker official ruby buster images was dropped after bookworm was available (it might be preferable to delay updating to bookworm in case any users still run an old Docker < 2.10.10, which has difficulty building images with glibc >= 2.34 due to this issue).

@CLAassistant
Copy link

CLAassistant commented Aug 3, 2023

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link

ghost commented Aug 3, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@yannickwurm yannickwurm merged commit 1c7670a into wurmlab:master Aug 9, 2023
@nathanweeks nathanweeks deleted the issue-673 branch August 13, 2023 21:23
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.

3 participants