multimodalart HF staff commited on
Commit
0741f7a
1 Parent(s): 896b745

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -30
Dockerfile CHANGED
@@ -1,33 +1,5 @@
1
- # Use the base image with your launcher
2
- FROM docker.io/nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04@sha256:38e59267704b5d91ef63c7d8f613359c629fab0aead1283d59ca7821029e73bc
3
- FROM thecooltechguy/comfyui_launcher AS launcher
4
 
5
- # Create a non-root user first
6
  RUN useradd -m -u 1000 user
7
-
8
- # Fix all permission issues for unknown images
9
  RUN chown -R user:user / || true
10
-
11
- # Install Nginx as root
12
- USER root
13
- RUN apt-get update && \
14
- apt-get install -y nginx && \
15
- rm -rf /var/lib/apt/lists/*
16
-
17
- # Configure Nginx to act as a reverse proxy
18
- RUN rm /etc/nginx/sites-enabled/default
19
- COPY nginx.conf /etc/nginx/sites-enabled/
20
-
21
- COPY start.sh /start.sh
22
-
23
- # Ensure proper permissions for Nginx directories
24
- RUN chown -R user:user /var/lib/nginx /var/log/nginx /var/www/html /start.sh
25
- RUN chmod +x /start.sh
26
-
27
- # Setup symlink to use /data instead of /app
28
- RUN mkdir /data && chown user:user /data
29
- #RUN ln -s /data /app
30
-
31
- # Switch back to the non-root user for running applications
32
- USER user
33
- ENTRYPOINT ["/start.sh"]
 
1
+ FROM thecooltechguy/comfyui_launcher
 
 
2
 
 
3
  RUN useradd -m -u 1000 user
 
 
4
  RUN chown -R user:user / || true
5
+ USER user