Эх сурвалжийг харах

[dockerfile] Remove sudo as it clears http_proxy set by --build-arg (#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.
chenlein 2 жил өмнө
parent
commit
02a46499c7

+ 1 - 1
tools/docker/hue/Dockerfile

@@ -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 && \