Skip to content

Fix: Dockerfile --chown for non-root user permissions#178

Merged
dmabry merged 5 commits into
mainfrom
fix/dockerfile-chown
Jul 17, 2026
Merged

Fix: Dockerfile --chown for non-root user permissions#178
dmabry merged 5 commits into
mainfrom
fix/dockerfile-chown

Conversation

@dmabry

@dmabry dmabry commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Adds to the COPY instruction in the Dockerfile to ensure the binary is owned by the non-root user.

Problem: The binary was copied as root but the container runs as the


/ \ | _____ ____ _ _ __ ___
/ _\ | |/ _ \ \ /\ / / _` | '
/ _
/ / | | () \ V V / (| | | | /
/ |_|_
/ _/_/ _, || _|
|
_/
Slinging packets since 2022!
Used for Netflow Collector Stress testing and other fun activities.
Version: main
expected 'single', 'barrage' or 'version' subcommands
to print more details pass '-help' after the subcommand

Single is used to send a given number of flows in sequence to a collector for testing.
Right now, Source and Destination IPs are randomly generated in the 10.0.0.0/8 range.

Barrage is used to send a continuous barrage of flows in different sequence to a collector for testing.

expected 'single', 'barrage' or 'version' subcommands user, which could cause permission denied errors.

Solution: Added flag to the COPY instruction.

Changes:

  • Added to COPY instruction
  • Moved before LABEL for better organization
  • Removed duplicate label

@dmabry
dmabry merged commit eecd26e into main Jul 17, 2026
3 checks passed
@dmabry
dmabry deleted the fix/dockerfile-chown branch July 17, 2026 16:17
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