Skip to content

Commit

Permalink
chore(blackduck): add permission to nonroot user
Browse files Browse the repository at this point in the history
SUITEDEV-35556
  • Loading branch information
matusekma committed Apr 29, 2024
1 parent a51d7a3 commit 1e4807e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.codescan
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ RUN flutter doctor
RUN groupadd -r nonroot && useradd -r -s /bin/false -g nonroot nonroot
RUN chown -R nonroot:nonroot /workspace/source
RUN chown -R nonroot:nonroot /usr/local/flutter
RUN chown -R nonroot:nonroot /home/nonroot/.config
USER nonroot

# remove unnecessary files
CMD flutter pub get && cat pubspec.lock && rm -rf example
CMD chown -R nonroot:nonroot /home/nonroot/.config && flutter pub get && cat pubspec.lock && rm -rf example


0 comments on commit 1e4807e

Please sign in to comment.