thuralinhtut commited on
Commit
ea68ec0
1 Parent(s): 3ac2e81
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -31,8 +31,13 @@ RUN a2enmod wsgi
31
  COPY django.conf /etc/apache2/sites-available/
32
  RUN a2ensite django.conf
33
 
 
 
 
 
34
  # Expose port 80 for Apache
35
  EXPOSE 80
36
 
37
  # Start Apache when the container starts
 
38
  CMD ["apachectl", "-D", "FOREGROUND"]
 
31
  COPY django.conf /etc/apache2/sites-available/
32
  RUN a2ensite django.conf
33
 
34
+ # Fix permissions and ownership for Apache
35
+ RUN chown -R www-data:www-data /var/log/apache2 /var/lock/apache2
36
+
37
+
38
  # Expose port 80 for Apache
39
  EXPOSE 80
40
 
41
  # Start Apache when the container starts
42
+ USER www-data
43
  CMD ["apachectl", "-D", "FOREGROUND"]