[guadec-web/oscp-2018] Land an oscp-2018 branch app



commit c3ee54dcd9355994e42660d873dad1451364e266
Author: Andrea Veri <averi redhat com>
Date:   Wed Oct 10 15:27:20 2018 +0200

    Land an oscp-2018 branch app

 Dockerfile | 35 ++++++++++++++++++++++++++++++++---
 1 file changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 56a9a34..2ea59b3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,38 @@
-# Dockerfile used to generate the image used by Gitlab CI
-
 FROM python:3.6.4-alpine3.7
 
 RUN apk update
-RUN apk add gcc make libc-dev python3-dev ruby ruby-dev nodejs
+RUN apk add git gcc make libc-dev python3-dev ruby ruby-dev nodejs shadow
 
 RUN npm install -g grunt-cli
 RUN gem install compass -N
+
+ENV GUADEC_HOME=/guadec-web \
+    LANG=C
+
+WORKDIR ${GUADEC_HOME}
+
+RUN git clone -b oscp-2018 https://gitlab.gnome.org/Infrastructure/guadec-web.git .
+
+# 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
+
+RUN chown -R 1001:0 ${GUADEC_HOME} && \
+    chmod -R 664 ${GUADEC_HOME} && \
+    find ${GUADEC_HOME} -type d -exec chmod 775 {} +
+
+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 8000
+
+ENTRYPOINT ["python", "-m"]
+CMD ["pelican.server"]


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