Skip to content

Commit 6bfe874

Browse files
committed
Added chown -R www-data:www-data for /var/lib/nginx (fixes dockerfile#4)
1 parent 6fe90d0 commit 6bfe874

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN \
1212
add-apt-repository -y ppa:nginx/stable && \
1313
apt-get update && \
1414
apt-get install -y nginx && \
15-
echo "\ndaemon off;" >> /etc/nginx/nginx.conf
15+
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
16+
chown -R www-data:www-data /var/lib/nginx
1617

1718
# Define mountable directories.
1819
VOLUME ["/data", "/etc/nginx/sites-enabled", "/var/log/nginx"]

0 commit comments

Comments
 (0)