Skip to content

Commit f88383c

Browse files
committed
Dockerfile: fix apt-key warning
Use curl to get the key to fix the warning message about apt-key being deprecated.
1 parent 85e94e4 commit f88383c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ ENV DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get -y update && apt-get -y upgrade && \
1515
#
1616
# Add PPA for Python 3.x and R 4.0
17-
apt -y install software-properties-common dirmngr && \
18-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \
17+
apt-get -y install \
18+
ca-certificates \
19+
curl \
20+
dirmngr \
21+
gpg \
22+
software-properties-common && \
23+
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | gpg --dearmor -o /etc/apt/keyrings/r-project-keyring.gpg && \
1924
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -sc)-cran40/" && \
2025
add-apt-repository -y ppa:deadsnakes/ppa && \
2126
#

0 commit comments

Comments
 (0)