Skip to content

Commit

Permalink
Remove sudo from commands already being ran as root
Browse files Browse the repository at this point in the history
  • Loading branch information
navarr committed Dec 19, 2024
1 parent 6023471 commit 46d3a07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion php-fpm/blackfire/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${ENV_SOURCE_IMAGE}:${PHP_VERSION}
USER root

RUN curl -o - "http://packages.blackfire.io/fedora/blackfire.repo" \
| sudo tee /etc/yum.repos.d/blackfire.repo \
| tee /etc/yum.repos.d/blackfire.repo \
&& dnf install -y blackfire-php \
&& dnf clean all \
&& rm -rf /var/cache/dnf
Expand Down
2 changes: 1 addition & 1 deletion php-fpm/magento1/blackfire/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${ENV_SOURCE_IMAGE}:${PHP_VERSION}-magento1
USER root

RUN curl -o - "http://packages.blackfire.io/fedora/blackfire.repo" \
| sudo tee /etc/yum.repos.d/blackfire.repo \
| tee /etc/yum.repos.d/blackfire.repo \
&& dnf install -y blackfire-php \
&& dnf clean all \
&& rm -rf /var/cache/dnf
Expand Down
2 changes: 1 addition & 1 deletion php-fpm/magento2/blackfire/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${ENV_SOURCE_IMAGE}:${PHP_VERSION}-magento2
USER root

RUN curl -o - "http://packages.blackfire.io/fedora/blackfire.repo" \
| sudo tee /etc/yum.repos.d/blackfire.repo \
| tee /etc/yum.repos.d/blackfire.repo \
&& dnf install -y blackfire-php \
&& dnf clean all \
&& rm -rf /var/cache/dnf
Expand Down
2 changes: 1 addition & 1 deletion php-fpm/orocommerce/blackfire/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${ENV_SOURCE_IMAGE}:${PHP_VERSION}-orocommerce
USER root

RUN curl -o - "http://packages.blackfire.io/fedora/blackfire.repo" \
| sudo tee /etc/yum.repos.d/blackfire.repo \
| tee /etc/yum.repos.d/blackfire.repo \
&& dnf install -y blackfire-php \
&& dnf clean all \
&& rm -rf /var/cache/dnf
Expand Down

0 comments on commit 46d3a07

Please sign in to comment.