buildx
This commit is contained in:
parent
69a3465bfd
commit
a3219605e3
11
Dockerfile
11
Dockerfile
@ -20,14 +20,21 @@ RUN npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm
|
|||||||
npm install -g @cerc-io/laconic-registry-cli && \
|
npm install -g @cerc-io/laconic-registry-cli && \
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
|
|
||||||
# docker-static (needed because of a bug with 'podman manifest'). Stick with 24 for buildx commands.
|
# docker-static (needed because of a bug with 'podman manifest').
|
||||||
ARG DOCKER_VER=24.0.9
|
ARG DOCKER_VER=25.0.3
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN curl -LO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VER}.tgz && \
|
RUN curl -LO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VER}.tgz && \
|
||||||
tar zxvf docker-${DOCKER_VER}.tgz docker/docker && \
|
tar zxvf docker-${DOCKER_VER}.tgz docker/docker && \
|
||||||
mv docker/docker /usr/local/bin/docker-static && \
|
mv docker/docker /usr/local/bin/docker-static && \
|
||||||
rm -rf docker-${DOCKER_VER}.tgz docker
|
rm -rf docker-${DOCKER_VER}.tgz docker
|
||||||
|
|
||||||
|
# docker buildx plugin (needed for 'imagetools')
|
||||||
|
RUN mkdir -p /root/.docker/cli-plugins
|
||||||
|
ARG BUILDX_VER=0.12.1
|
||||||
|
RUN curl -LO https://github.com/docker/buildx/releases/download/v${BUILDX_VER}/buildx-v${BUILDX_VER}.linux-amd64 && \
|
||||||
|
mv buildx-v${BUILDX_VER}.linux-amd64 /root/.docker/cli-plugins/docker-buildx && \
|
||||||
|
chmod a+x /root/.docker/cli-plugins/docker-buildx
|
||||||
|
|
||||||
# Include our docker script.
|
# Include our docker script.
|
||||||
COPY docker-wrapper.sh /usr/bin/docker
|
COPY docker-wrapper.sh /usr/bin/docker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user