BinaryONe commited on
Commit
dd4448e
·
1 Parent(s): 22c074f

Nginx Changes

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -39,9 +39,13 @@ RUN python --version && pip list
39
  #RUN py3-pip install --no-cache-dir --upgrade -r requirements.txt
40
  #RUN pip install -r requirements.txt
41
 
 
 
 
 
42
 
43
  # Set ownership of the app directory
44
- RUN chown -R appuser:appgroup /app
45
 
46
  # Switch to the non-root user
47
  USER appuser
 
39
  #RUN py3-pip install --no-cache-dir --upgrade -r requirements.txt
40
  #RUN pip install -r requirements.txt
41
 
42
+ # Create necessary directories and set correct permissions
43
+ RUN mkdir -p /var/www/html /var/log/nginx && \
44
+ chown -R nginx:nginx /var/log/nginx && \
45
+ chown -R appuser:appgroup /app /var/www/html
46
 
47
  # Set ownership of the app directory
48
+ #RUN chown -R appuser:appgroup /app
49
 
50
  # Switch to the non-root user
51
  USER appuser