in my local test the code is perfectly worked but when i build the docker, after run a docker image,
"selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/114.0.5735.90/chromedriver unexpectedly exited. Status code was: 255"
is occured
this is my Dockerfile
FROM python:3.11.4-slim
WORKDIR /app
COPY elasticModule.py /app/elasticModule.py
COPY slackMessage.py /app/slackMessage.py
COPY elasticMain.py /app/elasticMain.py
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
CMD ["python", "elasticMain.py"]
and also this is my make webdriver code
options = Options()
options.add_experimental_option("detach", True)
options.add_argument("--headless")
options.add_argument("--no-sandbox")
options.add_argument("--disable-gpu")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
driver.get(url)
somebody help..
i already try lot's of things.. but it's not work on docker container