Skip to content

Commit

Permalink
[dockerfile] Remove sudo as it clears http_proxy set by --build-arg (#…
Browse files Browse the repository at this point in the history
…3303)

- Remove `sudo` as it will clear `http_proxy` set by `--build-arg` and as the current user is already root.

How was this patch tested?
- Built the Docker image using --build-arg="http_proxy=x.x.x.x" in an offline environment.
  • Loading branch information
chenlein authored Jul 17, 2023
1 parent c5f6a61 commit 02a4649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/docker/hue/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update -y && apt-get install -y \
ADD . /hue

RUN pip3 install --upgrade --no-cache-dir setuptools virtualenv pip && \
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get install -y nodejs && \
addgroup hue && \
useradd -r -u 1001 -g hue hue && \
Expand Down

0 comments on commit 02a4649

Please sign in to comment.