stagex/packages/meson/Containerfile

26 lines
709 B
Text
Raw Normal View History

2024-02-09 07:30:28 +00:00
FROM scratch as base
2024-02-05 10:42:27 +00:00
ENV VERSION=1.3.1
ENV SRC_FILE=meson-${VERSION}.tar.gz
ENV SRC_SITE=https://github.com/mesonbuild/meson/releases/download/${VERSION}/${SRC_FILE}
ENV SRC_HASH=6020568bdede1643d4fb41e28215be38eff5d52da28ac7d125457c59e0032ad7
FROM base as fetch
2024-02-09 07:30:28 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-02-05 10:42:27 +00:00
FROM fetch as build
2024-02-09 07:30:28 +00:00
COPY --from=busybox . /
2024-02-10 11:11:28 +00:00
COPY --from=musl . /
2024-02-09 07:30:28 +00:00
COPY --from=python . /
COPY --from=py-setuptools . /
COPY --from=zlib . /
2024-02-10 11:14:13 +00:00
RUN tar -xf ${SRC_FILE}
WORKDIR meson-${VERSION}
RUN python setup.py build
2024-02-05 10:42:27 +00:00
FROM build as install
2024-02-09 07:30:28 +00:00
RUN --network=none python setup.py install --root=/rootfs
RUN find /rootfs -exec touch -hcd "@0" "{}" +
2024-02-05 10:42:27 +00:00
FROM scratch as package
COPY --from=install /rootfs /