containers/pagefind/Dockerfile
Kaan Barmore-Genç 9308cfa073
Some checks failed
ci/woodpecker/push/tor Pipeline was successful
ci/woodpecker/push/rsync Pipeline was successful
ci/woodpecker/push/pagefind Pipeline failed
Use arg and env?
2023-10-26 17:08:02 -05:00

13 lines
521 B
Docker

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