[gimp-web/oscp] Set up a Python 3 venv and install pelican requirements



commit 05587b4d93ef1be8bed6277e085524a2c23efd2a
Author: Michael Schumacher <schumaml gmx de>
Date:   Fri Apr 17 21:07:54 2020 +0200

    Set up a Python 3 venv and install pelican requirements

 static.gimp.org/Dockerfile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/static.gimp.org/Dockerfile b/static.gimp.org/Dockerfile
index 64ac6b9b..6cc68020 100644
--- a/static.gimp.org/Dockerfile
+++ b/static.gimp.org/Dockerfile
@@ -1,10 +1,12 @@
 FROM centos:8
-RUN dnf install -y python3-pip git && \
-    pip3 install pelican Markdown pygeoip Pygments typogrify bs4
+RUN dnf install -y python3-pip git
 
 RUN git clone --depth 1 --branch migrate/py3 https://gitlab.gnome.org/Infrastructure/gimp-web && \
     cd gimp-web && \
-    pelican content -o output -s pelicanconf.py
+    python3 -m venv py3-venv && \
+    source py3-venv/bin/activate && \
+    pip3 install -r py3-requirements.txt && \
+    pelican -o output -s pelicanconf_common.py
 
 FROM centos/httpd-24-centos7
 USER root


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]