multimodalart HF Staff commited on
Commit
e242bbe
·
verified ·
1 Parent(s): b814168

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -17,13 +17,12 @@ RUN apt-get update && \
17
  RUN rm /etc/nginx/sites-enabled/default
18
  COPY nginx.conf /etc/nginx/sites-enabled/
19
 
 
 
20
  # Ensure proper permissions for Nginx directories
21
- RUN chown -R user:user /var/lib/nginx /var/log/nginx /var/www/html
 
22
 
23
  # Switch back to the non-root user for running applications
24
  USER user
25
- COPY start.sh /start.sh
26
- RUN chmod +x /start.sh
27
-
28
- # Set the script as the entrypoint
29
  ENTRYPOINT ["/start.sh"]
 
17
  RUN rm /etc/nginx/sites-enabled/default
18
  COPY nginx.conf /etc/nginx/sites-enabled/
19
 
20
+ COPY start.sh /start.sh
21
+
22
  # Ensure proper permissions for Nginx directories
23
+ RUN chown -R user:user /var/lib/nginx /var/log/nginx /var/www/html /start.sh
24
+ RUN chmod +x /start.sh
25
 
26
  # Switch back to the non-root user for running applications
27
  USER user
 
 
 
 
28
  ENTRYPOINT ["/start.sh"]