[guadec-web/oscp-2018] Drop the entrypoint (not really needed) and handle the install of requirements directly on the Docke
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web/oscp-2018] Drop the entrypoint (not really needed) and handle the install of requirements directly on the Docke
- Date: Fri, 28 Sep 2018 12:57:51 +0000 (UTC)
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]