Closed nicolascopernic closed 3 months ago
Heroku's container
stack is completely separate from buildpacks. If you use the container stack, no buildpacks are run, and instead the build is performed using your Dockerfile
.
See: https://devcenter.heroku.com/articles/build-docker-images-heroku-yml
Hi,
I am reaching out to seek assistance with an issue I've encountered while attempting to install Google Chrome and ChromeDriver in a Dockerized environment on Heroku using the heroku-community/chrome-for-testing buildpack.
I am running a Python application that requires headless browsing capabilities provided by Selenium. For this, I need both Google Chrome and ChromeDriver to be installed and accessible within my Docker container on Heroku.
Despite following the installation instructions and using the heroku-community/chrome-for-testing buildpack, I am unable to locate the Chrome binary within the Docker container. Here are the steps I have taken and the issues encountered:
1. Configured Buildpacks:
Added the heroku-community/chrome-for-testing buildpack.
Confirmed the buildpacks order:
heroku buildpacks -a my-app
Output:
2. Dockerfile:
3. Verification:
After deploying the application, I ran the following commands to verify the installation:
Output:
/usr/local/bin/chromedriver
Unfortunately, which chrome returns nothing, indicating that Chrome is not installed correctly or not accessible in the PATH.
I have checked the logs for any errors during the installation process, but none were apparent. The ChromeDriver binary is installed and accessible, but the Chrome binary is not.
Could you please provide guidance or additional steps to ensure that Google Chrome is installed and accessible within my Docker container on Heroku? Any insights or suggestions would be greatly appreciated.
Thank you for your time and assistance.
Best regards, Nicolas