Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
686c3859cf | ||
|
|
0a2a567e35 | ||
|
|
5b1f38c0e6 | ||
|
|
ab2e3cabff | ||
|
|
8f36110c0a | ||
|
|
e67e73089b | ||
|
|
ba361a0a23 | ||
|
|
e6c8286bc4 |
+15
-2
@@ -1,11 +1,24 @@
|
||||
FROM python:3.8.2-buster
|
||||
FROM python:3.10.2-slim-bullseye
|
||||
ARG PELICAN_VERSION=4.7.2
|
||||
ARG SOURCE_SANS_VERSION=3.046R
|
||||
ARG MATPLOTLIB_VERSION=3.5.1
|
||||
RUN apt update && apt upgrade -y
|
||||
RUN apt install wget unzip fontconfig -y
|
||||
|
||||
RUN wget https://github.com/adobe-fonts/source-sans/releases/download/${SOURCE_SANS_VERSION}/OTF-source-sans-${SOURCE_SANS_VERSION}.zip -O source-sans.zip && \
|
||||
unzip source-sans.zip -d source-sans && \
|
||||
rm source-sans.zip && \
|
||||
mkdir -p /usr/share/fonts/opentype/adobe/ && \
|
||||
cp source-sans/OTF/*.otf /usr/share/fonts/opentype/adobe/ && \
|
||||
rm -rf source-sans && \
|
||||
fc-cache -f -v
|
||||
RUN apt install -y \
|
||||
texlive-base \
|
||||
texlive-latex-extra \
|
||||
texlive-fonts-extra \
|
||||
texlive-fonts-recommended
|
||||
RUN pip install pelican==4.2.0
|
||||
RUN pip install pelican==${PELICAN_VERSION}
|
||||
RUN pip install matplotlib==${MATPLOTLIB_VERSION}
|
||||
WORKDIR /site
|
||||
RUN mkdir -p /site-generated
|
||||
ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"]
|
||||
|
||||
@@ -10,7 +10,7 @@ docker run --detach \
|
||||
--name=pelican \
|
||||
--volume <your-site-dir>:/site \
|
||||
--volume pelican_files:/site-generated \
|
||||
boonto/pelican:3.8.1-4.2.0
|
||||
boonto/pelican:3.10.2-4.7.2
|
||||
```
|
||||
May be used in conjunction with the [nginx](https://hub.docker.com/_/nginx) container to serve the output.
|
||||
```
|
||||
@@ -19,3 +19,4 @@ docker run --detach \
|
||||
--volume pelican_files:/usr/share/nginx/html:ro \
|
||||
nginx
|
||||
```
|
||||
Also provides `matplotlib`, `latex` and the [Source Sans](https://github.com/adobe-fonts/source-sans) font for use with the [m.css](https://mcss.mosra.cz/themes/pelican/) Pelican theme.
|
||||
Reference in New Issue
Block a user