Use arg and env?
This commit is contained in:
parent
66a76d8ef9
commit
9308cfa073
|
@ -1,10 +1,12 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
ARG version=v1.0.3
|
ARG PAGEFIND_VERSION
|
||||||
|
ENV PAGEFIND_VERSION=${PAGEFIND_VERSION:-v1.0.3}
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
|
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
|
||||||
|
|
||||||
RUN wget 'https://github.com/CloudCannon/pagefind/releases/download/${version}/pagefind-${version}-x86_64-unknown-linux-musl.tar.gz' \
|
RUN echo "Building ${PAGEFIND_VERSION}" \
|
||||||
&& tar -xvf pagefind-${version}-x86_64-unknown-linux-musl.tar.gz \
|
&& 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/ \
|
&& mv pagefind /usr/bin/ \
|
||||||
&& rm pagefind-${version}-x86_64-unknown-linux-mus
|
&& rm pagefind-${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz
|
||||||
|
|
Loading…
Reference in a new issue