Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pkg/buildx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/buildx \
Expand Down
4 changes: 1 addition & 3 deletions pkg/compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/compose \
Expand Down
8 changes: 1 addition & 7 deletions pkg/containerd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN <<EOT
set -ex
git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
git checkout -q FETCH_HEAD
EOT
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/containerd \
Expand Down
4 changes: 1 addition & 3 deletions pkg/credential-helpers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/docker-credential-helpers \
Expand Down
4 changes: 1 addition & 3 deletions pkg/docker-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/cli \
Expand Down
4 changes: 1 addition & 3 deletions pkg/docker-engine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/engine \
Expand Down Expand Up @@ -93,8 +91,8 @@
ENV GOTOOLCHAIN="local"
ENV GO111MODULE="off"
ENV PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
ENV DOCKER_BUILDTAGS apparmor seccomp selinux

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, ubuntu2204, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian12, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, ubuntu2404, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian13, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian11, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian11, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2404, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian12, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian13, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2204, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian13, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian12, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian11, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2404, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, raspbian12, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2204, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 94 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, raspbian11, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV RUNC_BUILDTAGS apparmor seccomp selinux

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, ubuntu2204, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian12, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, ubuntu2404, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian13, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, debian11, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian11, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2404, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian12, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian13, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2204, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian13, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian12, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, debian11, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2404, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, raspbian12, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, ubuntu2204, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 95 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, raspbian11, linux/arm/v7, false)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ARG DISTRO_NAME
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils bash ca-certificates curl devscripts equivs git
RUN <<EOT
Expand Down Expand Up @@ -140,8 +138,8 @@
ENV GOTOOLCHAIN="local"
ENV GO111MODULE="off"
ENV PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
ENV DOCKER_BUILDTAGS seccomp selinux

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, oraclelinux9, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora38, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora38, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, oraclelinux9, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora37, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora37, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora39, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, centos9, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, centos9, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora39, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, oraclelinux8, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 141 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, oraclelinux8, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV RUNC_BUILDTAGS seccomp selinux

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, oraclelinux9, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora38, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora38, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, oraclelinux9, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora37, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora37, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, fedora39, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, centos9, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, centos9, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, fedora39, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04, oraclelinux8, linux/amd64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 142 in pkg/docker-engine/Dockerfile

View workflow job for this annotation

GitHub Actions / run / build (ubuntu-24.04-arm, oraclelinux8, linux/arm64, true)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ARG DISTRO_NAME
RUN --mount=type=bind,from=scripts,source=rpm-init.sh,target=/usr/local/bin/rpm-init \
rpm-init $DISTRO_NAME
Expand Down
4 changes: 1 addition & 3 deletions pkg/sbom/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/sbom \
Expand Down
4 changes: 1 addition & 3 deletions pkg/scan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ FROM --platform=$BUILDPLATFORM alpine AS src-base
RUN apk add --no-cache bash curl file git zip tar

FROM src-base AS src
WORKDIR /src
ARG PKG_REPO
RUN git init . && git remote add origin "${PKG_REPO}"
ARG PKG_REF
RUN git fetch origin "${PKG_REF}" +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
ADD --keep-git-dir=true "${PKG_REPO}#${PKG_REF}" /src

FROM src-base AS src-tgz
RUN --mount=from=src,source=/src,target=/scan \
Expand Down
Loading