File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,14 @@ RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen \
5555 && make \
5656 && make install \
5757 && cd / \
58+ # Determine the Distro name (Debian, Ubuntu, etc)
59+ && distro=$(lsb_release -is | awk '{print tolower($0)}') \
60+ # Determine the Distro version (bullseye, xenial, etc)
61+ # Note: sid is aliased to bullseye, because Docker doesn't have a matching apt repo
5862 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ${DOCKER_KEY} \
59- && curl -fsSL https://download.docker.com/linux/$(lsb_release -is | awk '{print tolower($0)}')/gpg | apt-key add - \
60- && ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(lsb_release -is | awk '{print tolower($0)}') $(lsb_release -cs) stable" ) \
63+ && curl -fsSL https://download.docker.com/linux/${distro}/gpg | apt-key add - \
64+ && version=$(lsb_release -cs | awk '{gsub("sid", "bullseye"); print $0}') \
65+ && ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/${distro} ${version} stable" ) \
6166 && apt-get update \
6267 && apt-get install -y docker-ce docker-ce-cli containerd.io --no-install-recommends --allow-unauthenticated \
6368 && [[ $(lscpu -J | jq -r '.lscpu[] | select(.field == "Vendor ID:") | .data') == "ARM" ]] && echo "Not installing docker-compose. See https://github.com/docker/compose/issues/6831" || ( curl -sL "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose ) \
You can’t perform that action at this time.
0 commit comments