diff --git a/Dockerfile b/Dockerfile index 8db2337..1cf01cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,17 @@ 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==${PELICAN_VERSION} -RUN pip install matplotlib==${MATPLOTLIB_VERSION} +RUN pip install --no-cache pelican==${PELICAN_VERSION} +RUN pip install --no-cache Markdown==3.2.1 +RUN pip install --no-cache matplotlib==${MATPLOTLIB_VERSION} + WORKDIR /site -RUN mkdir -p /site-generated + +RUN mkdir -p /site/content /site-generated + +COPY pelicanconf.py /site/ + ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"] diff --git a/pelicanconf.py b/pelicanconf.py new file mode 100644 index 0000000..6bc0ea4 --- /dev/null +++ b/pelicanconf.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # +PATH = '/site/content'