[wiki-web] Copy app_data in, and also try figuring out why tar generates a dir named moin-${MOIN_RELEASE} twice



commit c60bb0fcf401dde2aace038c3a7f6b71b305d3a6
Author: Andrea Veri <averi redhat com>
Date:   Tue Aug 6 19:24:56 2019 +0200

    Copy app_data in, and also try figuring out why tar generates a dir named moin-${MOIN_RELEASE} twice

 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 2d8fbfa..08c0afd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,9 +6,10 @@ WORKDIR /srv/http/moin-${MOIN_RELEASE}
 
 RUN yum install python27-mod_wsgi wget -y 
 RUN wget https://github.com/moinwiki/moin-1.9/releases/download/${MOIN_RELEASE}/moin-${MOIN_RELEASE}.tar.gz 
&& \
-    tar xvf moin-${MOIN_RELEASE}.tar.gz && rm -f moin-${MOIN_RELEASE}.tar.gz && \
+    mkdir moin-${MOIN_RELEASE} && tar xvf moin-${MOIN_RELEASE}.tar.gz -C moin-${MOIN_RELEASE} && rm -f 
moin-${MOIN_RELEASE}.tar.gz && \
     ln -s /srv/http/moin-${MOIN_RELEASE} /srv/http/moin
 
+COPY app_data /opt/app-root/src
 COPY git-pull.sh /usr/local/bin/git-pull.sh
 
 EXPOSE 8443


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