Master
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
FROM debian
|
||||
|
||||
# Install Docker and qemu
|
||||
# TODO Use docker stable once it properly supports buildx
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@ -9,7 +8,7 @@ RUN apt-get update && apt-get install -y \
|
||||
gnupg2 \
|
||||
software-properties-common && \
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
|
||||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
|
||||
add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
|
||||
apt-get update && apt-get install -y \
|
||||
docker-ce-cli \
|
||||
binfmt-support \
|
||||
@ -17,8 +16,8 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
# Install buildx plugin
|
||||
RUN mkdir -p ~/.docker/cli-plugins && \
|
||||
curl -s https://api.github.com/repos/docker/buildx/releases/latest | \
|
||||
grep "browser_download_url.*linux-amd64" | cut -d : -f 2,3 | tr -d \" | \
|
||||
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 -L -o ~/.docker/cli-plugins/docker-buildx && \
|
||||
chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||
|
||||
|
Reference in New Issue
Block a user