[guadec-web/oscp-2018] Drop the entrypoint (not really needed) and handle the install of requirements directly on the Docke



commit 6767f0b24d9838f5213bc6e05c50e27ca95b1064
Author: Andrea Veri <averi redhat com>
Date:   Fri Sep 28 14:57:41 2018 +0200

    Drop the entrypoint (not really needed) and handle the install of requirements directly on the Dockerfile

 Dockerfile    | 13 +++++++++++--
 entrypoint.sh | 13 -------------
 2 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 95afdae..e14601b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,9 @@ WORKDIR ${GUADEC_HOME}
 
 RUN git clone https://gitlab.gnome.org/Infrastructure/guadec-web.git
 
-COPY entrypoint.sh ${GUADEC_HOME}
+# Install python and nodejs dependencies
+RUN pip install -r requirements.txt
+RUN npm install
 
 RUN useradd -u 1001 -g 0 -d ${GUADEC_HOME}/ -r -s /usr/sbin/nologin guadecweb
 
@@ -25,6 +27,13 @@ RUN chown -R 1001:0 ${GUADEC_HOME} && \
 
 USER 1001
 
+RUN hamlpy-watcher ./src/haml/ ./themes/website/templates/ --attr-wrapper \" --once
+RUN grunt
+
+RUN pelican -s publishconf.py -o public
+
+WORKDIR ${GUADEC_HOME}/public
+
 EXPOSE 8080
 
-ENTRYPOINT ["./entrypoint.sh"]
+ENTRYPOINT "python -m pelican.server"


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