[api-web/oscp] Use /tmp instead



commit 97e17049824a7f977e1fc6186e2885ce4ec43e9a
Author: Andrea Veri <averi redhat com>
Date:   Fri Aug 30 12:27:26 2019 +0200

    Use /tmp instead

 Dockerfile                            | 11 +++++------
 app_data/httpd-cfg/api.gnome.org.conf |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index a11fa06..b81c514 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,15 +2,14 @@ FROM centos/httpd-24-centos7
 
 USER root 
 
-ENV SITE_ROOT=/opt/app-root \
+ENV SITE_ROOT=/opt/app-root/src \
     REPO=https://gitlab.gnome.org/Infrastructure/api-web.git
 
 COPY app_data ${SITE_ROOT}
-RUN mkdir ${SITE_ROOT}/html ${SITE_ROOT}/src && \
-    yum install git rsync -y && \
-    git clone ${REPO} ${SITE_ROOT}/src && \
-    rsync --archive --exclude=api-web.doap --exclude=.git ${SITE_ROOT}/src ${SITE_ROOT}/html && \ 
-    chown -R 1000470000:1000470000 /opt/app-root/src/html
+RUN yum install git rsync -y && \
+    cd /tmp && git clone ${REPO} && \
+    rsync --archive --exclude=api-web.doap --exclude=.git /tmp/api-web.git ${SITE_ROOT} && \ 
+    chown -R 1000470000:1000470000 /opt/app-root/src
 
 EXPOSE 8080
 
diff --git a/app_data/httpd-cfg/api.gnome.org.conf b/app_data/httpd-cfg/api.gnome.org.conf
index 980e58e..5844d05 100644
--- a/app_data/httpd-cfg/api.gnome.org.conf
+++ b/app_data/httpd-cfg/api.gnome.org.conf
@@ -1,4 +1,4 @@
 <VirtualHost *:8080>
-    DocumentRoot /opt/app-root/src/html 
+    DocumentRoot /opt/app-root/src 
     ServerName api.gnome.org 
 </VirtualHost>


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