Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
Remove the plugin download and enable DOCKER_CLI_EXPERIMENTAL
Browse files Browse the repository at this point in the history
  • Loading branch information
tlex committed Sep 26, 2020
1 parent 19c69cf commit e498a8f
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
FROM debian:stable-slim as BUILDER

# TODO disable this flag once it's not needed for `buildx` anymore
ENV DOCKER_CLI_EXPERIMENTAL=enabled

FROM debian:stable-slim
LABEL maintainer="docker@ix.ai" \
ai.ix.repository="ix.ai/docker-buildx-qemu"

# Upgrades the image, Installs docker and qemu, installs buildx plugin and prints the version to the file
# TODO Use docker stable once it properly supports buildx
# Upgrades the image, Installs docker and qemu
RUN set -eux; \
export DEBIAN_FRONTEND=noninteractive; \
export TERM=linux; \
apt-get update; \
apt-get -y dist-upgrade; \
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
\
ca-certificates \
\
binfmt-support \
qemu-user-static \
\
git \
jq \
curl \
; \
\
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - ; \
add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable"; \
apt-get update; \
apt-get install -y --no-install-recommends \
docker-ce-cli \
binfmt-support \
qemu-user-static \
git \
jq \
; \
\
mkdir -p ~/.docker/cli-plugins; \
export ARCH=$(dpkg --print-architecture); \
echo Running on $ARCH; \
curl -s https://api.github.com/repos/docker/buildx/releases/latest \
| grep "browser_download_url.*linux-$ARCH" | cut -d : -f 2,3 | tr -d \" \
| xargs curl -sL -o ~/.docker/cli-plugins/docker-buildx \
; \
chmod a+x ~/.docker/cli-plugins/docker-buildx; \
\
apt-get autoremove --purge -y \
apt-transport-https \
Expand Down

0 comments on commit e498a8f

Please sign in to comment.