32 lines
969 B
Docker
32 lines
969 B
Docker
FROM debian:bullseye-slim
|
|
|
|
ENV CHORDPRO_PIPELINE=true
|
|
|
|
ARG ZOLA_VERSION="0.21.0"
|
|
ARG CHORDPRO_VERSION="6.090.0"
|
|
|
|
# Install runtime dependencies only, clean up after
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
openssl \
|
|
openssh-client \
|
|
rsync \
|
|
git \
|
|
wget \
|
|
libio-socket-ssl-perl \
|
|
ghostscript \
|
|
nodejs \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends build-essential cpanminus \
|
|
&& cpanm chordpro@${CHORDPRO_VERSION} \
|
|
&& apt-get purge -y --auto-remove build-essential cpanminus \
|
|
&& rm -rf /root/.cpanm /var/lib/apt/lists/*
|
|
|
|
RUN wget -q https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
|
|
&& tar -xzf zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
|
|
&& mv zola /usr/local/bin/ \
|
|
&& rm zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
|
|
|
CMD ["/bin/sh"]
|