File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# docker build -t image-builder .
33# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v <local path to build>:/repo -w /repo image-builder <image-build args>
44
5- # renovate: datasource=github-releases depName=oras-project/oras
6- ARG ORAS_VERSION=1.3.0
7-
85# build Microsoft.DotNet.ImageBuilder
96FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0-azurelinux3.0 AS build-env
107ARG TARGETARCH
11- ARG ORAS_VERSION
12-
13- # download oras package tarball
14- WORKDIR /
15- RUN curl -fSL --output oras_linux.tar.gz https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_${TARGETARCH}.tar.gz \
16- && mkdir -p oras-install/ \
17- && tar -zxf oras_linux.tar.gz -C oras-install/ \
18- && rm -rf oras_linux.tar.gz
198
209WORKDIR /image-builder
2110
@@ -35,15 +24,13 @@ FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-azurelinux3.0
3524
3625# install tooling
3726RUN tdnf install -y \
38- moby-engine \
39- docker-cli \
4027 docker-buildx \
28+ docker-cli \
4129 git \
30+ moby-engine \
31+ oras \
4232 && tdnf clean all
4333
44- # install oras tool
45- COPY --from=build-env ["/oras-install/oras", "/usr/local/bin"]
46-
4734# install image-builder
4835WORKDIR /image-builder
4936COPY --from=build-env /image-builder/out ./
You can’t perform that action at this time.
0 commit comments