stagex/packages/redis/Containerfile

29 lines
808 B
Text
Raw Normal View History

2024-08-08 07:47:42 +00:00
FROM scratch AS base
2024-03-26 22:24:46 +00:00
ENV VERSION=7.2.4
ENV SRC_FILE=redis-${VERSION}.tar.gz
ENV SRC_SITE=https://download.redis.io/releases/${SRC_FILE}
ENV SRC_HASH=8d104c26a154b29fd67d6568b4f375212212ad41e0c2caa3d66480e78dbd3b59
2024-08-08 07:47:42 +00:00
FROM base AS fetch
2024-03-26 22:24:46 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-08-08 07:47:42 +00:00
FROM fetch AS build
2024-03-26 22:24:46 +00:00
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/perl . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/make . /
COPY --from=stagex/openssl . /
RUN tar -xf ${SRC_FILE}
WORKDIR redis-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN make BUILD_TLS=yes all
2024-08-08 07:47:42 +00:00
FROM build AS install
2024-03-26 22:24:46 +00:00
RUN --network=none make install PREFIX="/rootfs" INSTALL_BIN="/rootfs/usr/bin"
2024-08-08 07:47:42 +00:00
FROM stagex/filesystem AS package
2024-03-26 22:24:46 +00:00
COPY --from=install /rootfs/. /