[gimp-web/oscp] static: use ARGs in Dockerfile to keep changes to other Dockerfiles minimal



commit 8f2778a8f1d28c2b84fe6e04ff10fa70486a30c4
Author: Michael Schumacher <schumaml gmx de>
Date:   Mon Jul 5 19:33:34 2021 +0200

    static: use ARGs in Dockerfile to keep changes to other Dockerfiles minimal

 static.gimp.org/Dockerfile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/static.gimp.org/Dockerfile b/static.gimp.org/Dockerfile
index 0a00693e..e8ab9a48 100644
--- a/static.gimp.org/Dockerfile
+++ b/static.gimp.org/Dockerfile
@@ -1,12 +1,15 @@
 FROM centos:8
 RUN dnf install -y python3-pip git make
 
-RUN git clone --depth 1 --branch migrate/testing https://gitlab.gnome.org/Infrastructure/gimp-web && \
+ARG branch=migrate/testing
+ARG target=static
+
+RUN git clone --depth 1 --branch $branch https://gitlab.gnome.org/Infrastructure/gimp-web && \
     cd gimp-web && \
     python3 -m venv py3-venv && \
     source py3-venv/bin/activate && \
     pip3 install -r py3-requirements.txt && \
-    make static
+    make $target
 
 FROM centos/httpd-24-centos7
 USER root


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