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

Refactor Dockerfile to reduce the amount of layers #701

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'main' into fix/reduce-layers-and-image-size
  • Loading branch information
AchimGrolimund authored May 7, 2024
commit 2d3feb722b591d51a9f473d03aab180369a889ee
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ COPY --from=build /src/alloy/build/alloy /bin/alloy
COPY example-config.alloy /etc/alloy/config.alloy

# Create alloy user in container, but do not set it as default

RUN groupadd --gid $UID $USERNAME \
&& useradd -m -u $UID -g $UID $USERNAME \
&& chown -R $USERNAME:$USERNAME /etc/alloy \
&& chown -R $USERNAME:$USERNAME /bin/alloy \
&& setcap 'cap_net_bind_service=+ep' /bin/alloy \

&& mkdir -p /var/lib/alloy/data \
&& chown -R $USERNAME:$USERNAME /var/lib/alloy \
&& chmod -R 770 /var/lib/alloy
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.