summaryrefslogtreecommitdiff
path: root/docker/android-sdk/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/android-sdk/Dockerfile')
-rw-r--r--docker/android-sdk/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/android-sdk/Dockerfile b/docker/android-sdk/Dockerfile
index 5820dd63..20ae2c48 100644
--- a/docker/android-sdk/Dockerfile
+++ b/docker/android-sdk/Dockerfile
@@ -13,8 +13,10 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq && \
apt-get -y dist-upgrade && \
apt-get -y install gnupg apt-transport-https
-RUN echo 'deb https://download.docker.com/linux/debian debian-stretch stable' > /etc/apt/sources.list.d/docker.list && \
- curl -s https://download.docker.com/linux/debian/gpg | apt-key add -
+RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
+ echo \
+ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
+ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update -qq && \
apt-get install -y docker-engine \
# the basics