2024-02-09 07:30:28 +00:00
|
|
|
FROM scratch as base
|
|
|
|
ENV VERSION=68.2.2
|
2023-11-21 23:57:26 +00:00
|
|
|
ENV SRC_HASH=4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87
|
2024-02-09 07:30:28 +00:00
|
|
|
ENV SRC_FILE=setuptools-${VERSION}.tar.gz
|
|
|
|
ENV SRC_SITE=https://pypi.io/packages/source/s/setuptools/${SRC_FILE}
|
2023-12-16 23:50:40 +00:00
|
|
|
|
|
|
|
FROM base as fetch
|
2024-02-09 07:30:28 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
2023-12-16 23:50:40 +00:00
|
|
|
|
|
|
|
FROM fetch as build
|
2024-02-15 15:22:38 +00:00
|
|
|
COPY --from=stagex/busybox . /
|
|
|
|
COPY --from=stagex/musl . /
|
|
|
|
COPY --from=stagex/python . /
|
|
|
|
COPY --from=stagex/zlib . /
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN tar -xzf ${SRC_FILE}
|
|
|
|
WORKDIR setuptools-${VERSION}
|
2024-02-10 11:11:28 +00:00
|
|
|
RUN python setup.py build
|
2023-12-16 23:50:40 +00:00
|
|
|
|
|
|
|
FROM build as install
|
2024-02-10 11:11:28 +00:00
|
|
|
RUN python setup.py install --root=/rootfs
|
2024-02-09 18:19:36 +00:00
|
|
|
RUN find /rootfs -exec touch -hcd "@0" "{}" +
|
2023-11-21 23:57:26 +00:00
|
|
|
|
2024-03-01 18:30:23 +00:00
|
|
|
FROM stagex/filesystem as package
|
|
|
|
COPY --from=install /rootfs/. /
|