mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-24 12:01:12 -06:00
Use 2023 docker image as base
This commit is contained in:
37
Dockerfile
37
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:rolling
|
FROM registry.gitlab.com/islandoftex/images/texlive
|
||||||
|
|
||||||
LABEL "maintainer"="Hendrik Kleinwächter <hendrik.kleinwaechter@gmail.com>"
|
LABEL "maintainer"="Hendrik Kleinwächter <hendrik.kleinwaechter@gmail.com>"
|
||||||
LABEL "repository"="https://github.com/hendricius/the-sourdough-framework"
|
LABEL "repository"="https://github.com/hendricius/the-sourdough-framework"
|
||||||
@@ -19,43 +19,8 @@ RUN apt-get update && \
|
|||||||
git \
|
git \
|
||||||
wget
|
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 \
|
|
||||||
texlive-pictures \
|
|
||||||
fonts-texgyre \
|
|
||||||
dvisvgm \
|
|
||||||
context \
|
|
||||||
python3-pygments \
|
|
||||||
python3-setuptools
|
|
||||||
|
|
||||||
RUN apt-get install --yes -y --no-install-recommends \
|
|
||||||
biber \
|
|
||||||
texlive-bibtex-extra \
|
|
||||||
openjdk-21-jre-headless \
|
|
||||||
ghostscript \
|
|
||||||
graphviz
|
|
||||||
|
|
||||||
RUN apt-get autoclean && apt-get --purge --yes autoremove
|
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
# Latest make4ht and tex4ebook
|
|
||||||
RUN git clone https://github.com/michal-h21/make4ht && \
|
|
||||||
cd make4ht && \
|
|
||||||
make justinstall
|
|
||||||
|
|
||||||
RUN git clone https://github.com/michal-h21/tex4ebook.git && \
|
|
||||||
cd tex4ebook && git checkout v0.3i && \
|
|
||||||
make && make install
|
|
||||||
|
|
||||||
# Support to build amazon kindle books
|
# 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 && \
|
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 && \
|
tar xzf kindlegen_linux_2.6_i386_v2_9.tar.gz && \
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ release_sans_serif: build_sans_serif_pdf build_sans_serif_ebook | make_release_d
|
|||||||
cp epub/book_sans_serif.azw3 release/TheBreadCode-The-Sourdough-Framework-sans-serif.azw3
|
cp epub/book_sans_serif.azw3 release/TheBreadCode-The-Sourdough-Framework-sans-serif.azw3
|
||||||
|
|
||||||
.PHONY: website
|
.PHONY: website
|
||||||
website: default
|
website:
|
||||||
rm -rf $(WEBSITE_DIR)
|
rm -rf $(WEBSITE_DIR)
|
||||||
make4ht -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex
|
make4ht -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex
|
||||||
mv $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html
|
mv $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html
|
||||||
|
|||||||
4
makefile
4
makefile
@@ -36,6 +36,10 @@ show_tools_version:
|
|||||||
printvars:
|
printvars:
|
||||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make printvars"
|
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make printvars"
|
||||||
|
|
||||||
|
.PHONY: print_os_version
|
||||||
|
print_os_version:
|
||||||
|
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cat /etc/*release"
|
||||||
|
|
||||||
.PHONY: start_shell
|
.PHONY: start_shell
|
||||||
start_shell:
|
start_shell:
|
||||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash
|
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash
|
||||||
|
|||||||
Reference in New Issue
Block a user