[damned-lies/oscp] Generate statics in httpd image
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp] Generate statics in httpd image
- Date: Tue, 24 Mar 2020 09:45:47 +0000 (UTC)
commit ebd7b5a2bbdcba0c2a6dadc13331a9cb820ce652
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Mar 24 10:44:56 2020 +0100
Generate statics in httpd image
httpd/Dockerfile | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/httpd/Dockerfile b/httpd/Dockerfile
index 20fdf6f0..570d0c33 100644
--- a/httpd/Dockerfile
+++ b/httpd/Dockerfile
@@ -1,8 +1,26 @@
+FROM centos:7
+
+RUN INSTALL_PKGS="atlas-devel gcc-gfortran libffi-devel libtool-ltdl enchant \
+ gettext gnome-doc-utils intltool itstool libicu-devel mariadb-devel \
+ subversion translate-toolkit yelp-tools gcc-c++ \
+ uwsgi uwsgi-plugin-python36 python36-devel wget" && \
+ yum install -y epel-release && \
+ yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS
+
+RUN mkdir -p /l10n && \
+ git clone --depth 1 --branch master --single-branch
https://gitlab.gnome.org/Infrastructure/damned-lies.git /l10n/damnedlies
+
+WORKDIR /l10n/damnedlies
+RUN pip3 install -r requirements.txt && \
+ python3 manage.py collectstatic
+ python3 manage.py compile-trans
+
FROM centos/httpd-24-centos7
+COPY --from=0 /l10n /l10n
USER root
COPY app_data /opt/app-root/src
-RUN chown -R 1000660000:1000660000 /opt/app-root/src
+RUN chown -R 1000660000:1000660000 /opt/app-root/src /l10n
EXPOSE 8080
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]