gauthamnairy commited on
Commit
f8cad3c
·
verified ·
1 Parent(s): 82b79f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -20,10 +20,10 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
20
  # Install nginx
21
  RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
22
 
23
- RUN mkdir -p /var/lib/nginx/body && \
24
- chmod -R 777 /var/lib/nginx && \
25
- mkdir -p /var/log/nginx && \
26
- chmod -R 777 /var/log/nginx
27
 
28
  # Copy nginx config
29
  COPY nginx.conf /etc/nginx/conf.d/default.conf
 
20
  # Install nginx
21
  RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
22
 
23
+ RUN rm /etc/nginx/nginx.conf
24
+
25
+ # Copy your custom nginx.conf (the minimal one above)
26
+ COPY nginx.conf /etc/nginx/nginx.conf
27
 
28
  # Copy nginx config
29
  COPY nginx.conf /etc/nginx/conf.d/default.conf