Skip to content

Commit

Permalink
Move the apt-update before apt install
Browse files Browse the repository at this point in the history
  • Loading branch information
Yikun committed Mar 22, 2021
1 parent c7bf8ad commit 7418fdb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ RUN mkdir ${SPARK_HOME}/R

# Install R 3.6.3 (http://cloud.r-project.org/bin/linux/debian/)
RUN \
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran35/" >> /etc/apt/sources.list && \
apt-get update && \
apt install -y gnupg && \
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran35/" >> /etc/apt/sources.list && \
(apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF' || apt-key adv --keyserver keys.openpgp.org --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF') && \
apt-get update && \
apt install -y -t buster-cran35 r-base r-base-dev && \
Expand Down

0 comments on commit 7418fdb

Please sign in to comment.