mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
BUILDPLATFORM is automatically set to the host's platform in new Docker, so having it defined as an arg results in it being overridden by this automatic value. Since it was always assigned to a literal string in the test files, just use that string. Additionally, image platform is better pulled from the manifest, not the image config, in containerd store, so try that first. Additionally, python3 is on PATH on new macs by default, but not python. Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
16 lines
403 B
Docker
16 lines
403 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG OSXCROSS_VERSION=13.1
|
|
FROM --platform=linux/amd64 crazymax/osxcross:${OSXCROSS_VERSION}-ubuntu AS osxcross
|
|
|
|
FROM --platform=linux/amd64 ubuntu:22.04
|
|
|
|
RUN apt update -y && apt install -y \
|
|
curl wget \
|
|
make gcc clang \
|
|
git mingw-w64
|
|
|
|
COPY --from=osxcross /osxcross /osxcross
|
|
ENV PATH="/osxcross/bin:$PATH"
|
|
ENV LD_LIBRARY_PATH="/osxcross/lib:$LD_LIBRARY_PATH"
|