Skip to content

Commit

Permalink
update alias command since each RUN has a separate scope
Browse files Browse the repository at this point in the history
  • Loading branch information
SumanthRH authored Feb 18, 2024
1 parent ca2b40e commit f786bb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@ RUN apt install apt-transport-https curl gnupg -y && \
mv bazel-archive-keyring.gpg /usr/share/keyrings && \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
RUN apt update && apt install bazel-3.2.0
RUN alias bazel="bazel-3.2.0"
RUN ln -s "/home/ray/.bazel/bin/bazel-3.2.0" /home/ray/.bazel/bin/bazel
# downgrade protobuf and numpy for transformers and pygloo
RUN pip3 install protobuf==3.20.0 numpy==1.20.0
# install pygloo
RUN git clone https://github.com/ray-project/pygloo.git
RUN cd pygloo && python setup.py install && cd ..
RUN alias bazel="bazel-3.2.0" && cd pygloo && python setup.py install && cd ..

USER 1000

0 comments on commit f786bb8

Please sign in to comment.