[survey-web/oscp] Move source code to /usr/src and run rsync in entrypoint



commit b7a7997902e50455d5fb899f4ad5412815c402fb
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Dec 29 12:27:05 2020 +0100

    Move source code to /usr/src and run rsync in entrypoint

 Dockerfile    | 5 +++++
 entrypoint.sh | 1 +
 2 files changed, 6 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
index 76c0fa22..b094524d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,11 @@
 FROM martialblog/limesurvey:4-fpm
 
+RUN apt-get update && apt-get install -y rsync
+
+RUN mv /var/www/html /usr/src/limesurvey
+
 ADD ipa-ca.crt /etc/ipa-ca.crt
 ADD ldap.conf /etc/ldap/ldap.conf
 ADD entrypoint.sh /entrypoint.sh
+
 ENTRYPOINT ["/entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
index dadf9e4a..3477308a 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,4 +1,5 @@
 #!/bin/bash
 
+rsync -r /usr/src/limesurvey/ /var/www/html
 php application/commands/console.php updatedb
 exec php-fpm


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