This commit is contained in:
Thomas E Lackey 2024-02-23 19:27:52 -06:00
parent 69a3465bfd
commit a3219605e3

View File

@ -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 yarn
# docker-static (needed because of a bug with 'podman manifest'). Stick with 24 for buildx commands.
ARG DOCKER_VER=24.0.9
# docker-static (needed because of a bug with 'podman manifest').
ARG DOCKER_VER=25.0.3
WORKDIR /tmp
RUN curl -LO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VER}.tgz && \
tar zxvf docker-${DOCKER_VER}.tgz docker/docker && \
mv docker/docker /usr/local/bin/docker-static && \
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.
COPY docker-wrapper.sh /usr/bin/docker