Skip to content

#5776 Fix Docker build failure due to sass-embedded dart binary on Alpine#5778

Open
valkirilov wants to merge 2 commits intomainfrom
bugfix/5776/fix-docker-build-sass-embedded
Open

#5776 Fix Docker build failure due to sass-embedded dart binary on Alpine#5778
valkirilov wants to merge 2 commits intomainfrom
bugfix/5776/fix-docker-build-sass-embedded

Conversation

@valkirilov
Copy link
Copy Markdown
Member

@valkirilov valkirilov commented Apr 14, 2026

What

Added gcompat to the Alpine build stage to provide glibc compatibility for the sass-embedded Dart VM binary. The sass dependency is aliased to sass-embedded, which bundles a Dart runtime compiled for glibc. Since Alpine uses musl libc, the build fails at yarn build:statics when the sass CLI is invoked.

Also fixed the FROM ... as -> FROM ... AS casing warning.

Testing

docker build -t redis-insight-local .

Built the Docker image locally and confirmed:

  • yarn build:statics completes successfully (sass compiles plugin SCSS files)
  • The full image builds end-to-end without errors

Fixes #5776

Made with Cursor


Note

Low Risk
Low risk: changes are limited to Docker build dependencies and CI workflows, but could affect build reproducibility/size and fail if gcompat availability changes on Alpine.

Overview
Fixes Alpine Docker image build failures by adding gcompat to the build-stage apk add list so the sass-embedded (glibc-linked) binary can run during yarn build:statics, and adjusts FROM ... AS casing to avoid warnings.

Adds a reusable GitHub Actions docker-build workflow and wires it into the main tests workflow to build the Docker image in CI.

Reviewed by Cursor Bugbot for commit b351af7. Bugbot is set up for automated code reviews on this repo. Configure here.

The sass-embedded package bundles a Dart VM binary compiled for glibc,
which fails on Alpine Linux (musl libc). Adding gcompat provides the
glibc compatibility layer needed for the Dart runtime to execute.

Also fixes the Dockerfile `as` -> `AS` casing warning.

Fixes #5776

Made-with: Cursor
@valkirilov valkirilov requested a review from a team as a code owner April 14, 2026 20:45
@jit-ci
Copy link
Copy Markdown

jit-ci bot commented Apr 14, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@valkirilov valkirilov self-assigned this Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 92.53% 15297/16532
🟡 Branches 74.43% 4776/6417
🟢 Functions 86.44% 2377/2750
🟢 Lines 92.34% 14618/15831

Test suite run success

3339 tests passing in 305 suites.

Report generated by 🧪jest coverage report action from b351af7

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟡 Statements 79.96% 17361/21710
🟡 Branches 62.45% 7916/12675
🟡 Functions 68.68% 2417/3519
🟡 Lines 79.53% 16325/20525

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.54% 23920/28980
🟡 Branches 67.7% 10070/14874
🟡 Functions 77.62% 6444/8302
🟢 Lines 83% 23397/28189

Test suite run success

6638 tests passing in 780 suites.

Report generated by 🧪jest coverage report action from b351af7

Adds a reusable workflow that builds the root Dockerfile to catch
build-time failures early. Runs alongside lint in the test pipeline.

Fixes #5776

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: the ./Dockerfile cannot be used to build image locally due to dart-sass incompatibility

1 participant