From 8f7a425333ec72b66176a9fba1e703a75f517b22 Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 6 Apr 2017 20:08:08 +0200 Subject: [PATCH] Set folder owner for application to www-data in docker (#1189) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7bada5989..fa9d79d76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN echo -e “$(hostname -i)\t$(hostname) $(hostname).localhost” >> /etc/host WORKDIR /app COPY . /app RUN ln -s /app/*[^public] /var/www && rm -rf /var/www/html && ln -nsf /app/public /var/www/html -RUN chmod 755 /app/public/uploads && chown -R www-data:www-data /app/public/uploads && chown www-data:www-data /app/application/config/config.php +RUN chmod 755 /app/public/uploads && chown -R www-data:www-data /app/public /app/application RUN cp application/config/database.php.tmpl application/config/database.php && \ sed -i -e "s/\(localhost\)/web/g" test/ospos.js && \