pelican-docker/Dockerfile

18 lines
423 B
Docker

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 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/content /site-generated
COPY pelicanconf.py /site/
ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"]