mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-23 19:41:12 -06:00
This hopefully fixes some of the issues of the docker workflow building the book and website
44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
FROM ubuntu:rolling
|
|
|
|
LABEL "maintainer"="Hendrik Kleinwächter <hendrik.kleinwaechter@gmail.com>"
|
|
LABEL "repository"="https://github.com/hendricius/the-sourdough-framework"
|
|
LABEL "homepage"="https://github.com/hendricius/the-sourdough-framework"
|
|
LABEL org.opencontainers.image.source="https://github.com/hendricius/the-sourdough-framework"
|
|
|
|
# Install base depdendencies
|
|
RUN apt-get update && \
|
|
apt-get install --yes -y --no-install-recommends \
|
|
make \
|
|
tidy \
|
|
pandoc \
|
|
zip \
|
|
git \
|
|
wget
|
|
|
|
# Install base LaTeX system
|
|
RUN apt-get install --yes -y --no-install-recommends \
|
|
texlive-full
|
|
|
|
# Install LaTeX extras
|
|
RUN apt-get install --yes -y --no-install-recommends \
|
|
latexmk \
|
|
lmodern \
|
|
fonts-lmodern \
|
|
tex-gyre \
|
|
fonts-texgyre \
|
|
dvisvgm \
|
|
context \
|
|
python3-pygments \
|
|
python3-setuptools
|
|
|
|
RUN apt-get autoclean && apt-get --purge --yes autoremove
|
|
|
|
WORKDIR /root
|
|
|
|
# Support to build amazon kindle books
|
|
RUN wget https://archive.org/download/kindlegen_linux_2_6_i386_v2_9/kindlegen_linux_2.6_i386_v2_9.tar.gz && \
|
|
tar xzf kindlegen_linux_2.6_i386_v2_9.tar.gz && \
|
|
mv kindlegen /usr/bin
|
|
|
|
CMD ["/bin/bash"]
|