我有一个dockerfile从源代码下载和构buildGTK,但下面的行不更新我的图像的环境variables: RUN PATH="/opt/gtk/bin:$PATH" RUN export PATH 我读过,我应该使用ENV设置环境值,但下面的指令似乎也不工作: ENV PATH /opt/gtk/bin:$PATH 这是我的整个Dockerfile: FROM ubuntu RUN apt-get update RUN apt-get install -y golang gcc make wget git libxml2-utils libwebkit2gtk-3.0-dev libcairo2 libcairo2-dev libcairo-gobject2 shared-mime-info libgdk-pixbuf2.0-* libglib2-* libatk1.0-* libpango1.0-* xserver-xorg xvfb # Downloading GTKcd RUN wget http://ftp.gnome.org/pub/gnome/sources/gtk+/3.12/gtk+-3.12.2.tar.xz RUN tar xf gtk+-3.12.2.tar.xz RUN cd gtk+-3.12.2 # Setting environment variables before […]