Update wrapper/dockerfile
This commit is contained in:
		
							parent
							
								
									6cfd2aa6af
								
							
						
					
					
						commit
						729f70bab1
					
				@ -12,9 +12,10 @@ RUN apt-get update && \
 | 
			
		||||
# Faster, cleaner pip
 | 
			
		||||
RUN pip install --no-cache-dir pip setuptools wheel
 | 
			
		||||
 | 
			
		||||
# Optional: bake Playwright in (pass --build-arg WITH_PLAYWRIGHT=1)
 | 
			
		||||
# Optional Playwright (driven by build-arg)
 | 
			
		||||
ARG WITH_PLAYWRIGHT=0
 | 
			
		||||
RUN if [ "$WITH_PLAYWRIGHT" = "1" ]; then \
 | 
			
		||||
      pip install --no-cache-dir playwright && \
 | 
			
		||||
      pip install --no-cache-dir playwright==1.45.0 && \
 | 
			
		||||
      python -m playwright install --with-deps chromium ; \
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user