Skip to content

SCALRCORE-38942#18

Merged
artemvang merged 20 commits into
mainfrom
SCALRCORE-38942
Jul 1, 2026
Merged

SCALRCORE-38942#18
artemvang merged 20 commits into
mainfrom
SCALRCORE-38942

Conversation

@artemvang

Copy link
Copy Markdown
Collaborator

No description provided.

@artemvang artemvang added the build-gar-images Push image to the Scalr's Google Artifacts Registry label Jun 30, 2026
Comment thread Dockerfile
EOT

ENTRYPOINT ["/usr/bin/bash"]
FROM scratch AS slim

@artemvang artemvang Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We are squashing slim layer because docker scout finds vulnerabilities across all layers, therefore pebble from the base layer still counts even after deletion in later layers.

Comment thread Dockerfile
FROM base AS slim
RUN <<EOT
userdel -r ubuntu
useradd -u 1000 -m scalr

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ubuntu user already took lovely UID 1000, therefore we need to delete it

@mermoldy mermoldy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@artemvang
artemvang merged commit c74c511 into main Jul 1, 2026
2 checks passed
@artemvang
artemvang deleted the SCALRCORE-38942 branch July 1, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-gar-images Push image to the Scalr's Google Artifacts Registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants