FROM alpine:latest ARG PAGEFIND_VERSION ENV PAGEFIND_VERSION=${PAGEFIND_VERSION:-v1.0.3} LABEL org.opencontainers.image.authors="kaan@bgenc.net" RUN echo "Building ${PAGEFIND_VERSION}" \ && wget 'https://github.com/CloudCannon/pagefind/releases/download/${PAGEFIND_VERSION}/pagefind-${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz' \ && tar -xvf pagefind-${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz \ && mv pagefind /usr/bin/ \ && rm pagefind-${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz