stagex/packages/meson/Containerfile

25 lines
710 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
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/python . /
COPY --from=stagex/py-setuptools . /
COPY --from=stagex/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
2024-02-05 10:42:27 +00:00
FROM stagex/filesystem as package
COPY --from=install /rootfs/. /