Skip to content

Commit 47c13be

Browse files
committed
feat: pre-setup docker buildx
1 parent 69fb9e0 commit 47c13be

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ RUN sudo apt update -y && \
77
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
88
sudo apt-get install -y nodejs && \
99
sudo npm install -g npm@10
10+
11+
# Install Docker Buildx
12+
RUN BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .tag_name) && \
13+
curl -L "https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64" -o docker-buildx && \
14+
chmod a+x docker-buildx && \
15+
sudo mkdir -p ~/.docker/cli-plugins && \
16+
sudo mv docker-buildx ~/.docker/cli-plugins/

0 commit comments

Comments
 (0)