[odrs-web] Re-introduce the chowns, drop yum update (is it the culprit here?)
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Re-introduce the chowns, drop yum update (is it the culprit here?)
- Date: Mon, 17 Dec 2018 14:35:14 +0000 (UTC)
commit 6f9e8d68e981f300d9ad8841e89fe85435214f56
Author: Andrea Veri <averi redhat com>
Date: Mon Dec 17 15:35:05 2018 +0100
Re-introduce the chowns, drop yum update (is it the culprit here?)
Dockerfile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 592cb19..592ab4d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,6 @@ FROM centos/httpd-24-centos7
USER root
-RUN yum update -y
RUN yum install gcc make python27-python python27-python-pip python27-mod_wsgi python27-python-devel
python2-cryptography python-flask python2-flask-wtf python2-flask-login python2-PyMySQL -y
ENV ODRS_HOME=/opt/app-root/src \
@@ -12,6 +11,10 @@ WORKDIR ${ODRS_HOME}
COPY app_data ${ODRS_HOME}
+RUN chown -R 1000310000:0 ${ODRS_HOME} && \
+ chmod -R 664 ${ODRS_HOME} && \
+ find ${ODRS_HOME} -type d -exec chmod 775 {} +
+
RUN python /opt/app-root/src/cron.py ratings /opt/app-root/src/app/static/ratings.json
COPY entrypoint.sh /usr/local/bin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]