Use pelican debian package.

This commit is contained in:
Felix Delattre 2021-09-25 18:54:51 +00:00
parent db4e29c1d4
commit ea5e5f79f0
2 changed files with 3 additions and 32 deletions

View File

@ -1,27 +1,17 @@
FROM debian:buster-slim FROM debian:bullseye-slim
# Install dependencies # Install dependencies
RUN export DEBIAN_FRONTEND=noninteractive && \ RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update --yes --fix-missing && apt-get upgrade --yes && \ apt-get update --yes --fix-missing && apt-get upgrade --yes && \
apt-get install --yes --no-install-recommends \ apt-get install --yes --no-install-recommends \
apt-utils \ apt-utils \
build-essential \ pelican
bash \
coreutils \
python-pip \
python-virtualenv \
python-dev \
python-setuptools
# Install pelican and dependencies # Install pelican and dependencies
COPY files/start.sh /start.sh COPY files/start.sh /start.sh
COPY files/requirements.txt requirements.txt
RUN pip install wheel
RUN pip install -r requirements.txt
# Cleanup # Cleanup
RUN apt-get autoremove --yes $build_dependencies && apt-get autoremove --yes && \ RUN apt-get clean --yes && rm -rf /var/lib/apt/* /var/cache/apt/* /root/.cache
apt-get clean --yes && rm -rf /var/lib/apt/* /var/cache/apt/* /root/.cache
EXPOSE 8000 EXPOSE 8000
WORKDIR /srv/pelican WORKDIR /srv/pelican

View File

@ -1,19 +0,0 @@
BeautifulSoup
beautifulsoup4
blinker
docutils
feedgenerator
ghp-import
Jinja2
Markdown
markdown-include
markdown-attr-plus
MarkupSafe
pelican
pelican-alias
pillow
Pygments
pytz
six
Unidecode
wsgiref