neonwatty commited on
Commit
084b07f
·
verified ·
1 Parent(s): f9f4ada

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -26,10 +26,6 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
26
  && apt-get install -y google-chrome-stable \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
- # Create and set permissions for ChromeDriver directory (as root)
30
- # RUN mkdir -p /tmp/.wdm && \
31
- # chmod -R 777 /tmp/.wdm
32
-
33
  # Create a user with UID 1000 (as root)
34
  RUN useradd -m -u 1000 user
35
 
@@ -42,6 +38,10 @@ COPY --chown=user . $HOME/app
42
  # Switch to non-root user
43
  USER user
44
 
 
 
 
 
45
  # Install dependencies (as user)
46
  RUN pip install --no-cache-dir -r requirements.txt
47
 
 
26
  && apt-get install -y google-chrome-stable \
27
  && rm -rf /var/lib/apt/lists/*
28
 
 
 
 
 
29
  # Create a user with UID 1000 (as root)
30
  RUN useradd -m -u 1000 user
31
 
 
38
  # Switch to non-root user
39
  USER user
40
 
41
+ # Create ChromeDriver directory in app directory (as user)
42
+ RUN mkdir -p /tmp/.wdm && \
43
+ chmod -R 777 /tmp/.wdm
44
+
45
  # Install dependencies (as user)
46
  RUN pip install --no-cache-dir -r requirements.txt
47