-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using heredoc instead of long string of commands
Also, added an option (set -x) to print the expanded command that is run in the heredoc.
- Loading branch information
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,32 @@ LABEL maintainer "Vijay Lulla <[email protected]>" | |
## Run : docker run --rm -it --name lilypond lilypond | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
SHELL ["bash", "-c"] | ||
|
||
## ENV DISPLAY :0 | ||
RUN apt-get update -qq -y && apt-get install -y --no-install-recommends build-essential vim-tiny texlive-base flex ca-certificates && \ | ||
apt-get install -y --no-install-recommends perl guile-3.0 guile-3.0-dev guile-2.2 guile-2.2-dev python3 flex bison ghostscript imagemagick zip rsync dblatex libpango1.0-dev \ | ||
fonts-texgyre tidy extractpdfmark texlive-metapost curl fontforge texlive-lang-cyrillic gettext texinfo texi2html install-info texlive-xetex tini libfl-dev texlive-font-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN <<EOT | ||
set -ex | ||
apt-get update -qq -y | ||
apt-get install -y --no-install-recommends build-essential vim-tiny texlive-base flex ca-certificates | ||
apt-get install -y --no-install-recommends perl guile-3.0 guile-3.0-dev guile-2.2 guile-2.2-dev python3 flex bison ghostscript imagemagick zip rsync dblatex libpango1.0-dev fonts-texgyre tidy extractpdfmark texlive-metapost curl fontforge texlive-lang-cyrillic gettext texinfo texi2html install-info texlive-xetex tini libfl-dev texlive-font-utils | ||
rm -rf /var/lib/apt/lists/* | ||
EOT | ||
|
||
WORKDIR /tmp | ||
RUN curl -SL -O https://lilypond.org/download/source/v2.24/lilypond-2.24.1.tar.gz && tar xf lilypond-2.24.1.tar.gz && \ | ||
cd lilypond-2.24.1 && mkdir -p build && cd build && ../autogen.sh --noconfigure && ../configure && make -j 2 all && make install && \ | ||
cd /tmp && rm -rf lilypond-2.24.1 lilypond-2.24.1.tar.gz | ||
RUN <<EOT | ||
set -ex | ||
curl -SL -O https://lilypond.org/download/source/v2.24/lilypond-2.24.2.tar.gz | ||
tar xf lilypond-2.24.2.tar.gz | ||
cd lilypond-2.24.2 | ||
mkdir -p build | ||
cd build | ||
../autogen.sh --noconfigure | ||
../configure | ||
make -j $(( $(nproc) - 2)) all | ||
make install | ||
cd /tmp | ||
rm -rf lilypond-2.24.2 lilypond-2.24.2.tar.gz | ||
EOT | ||
|
||
## RUN apt-get install -y iproute2 net-tools iputils-ping | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters