statutory-emerald
statutory-emerald2y ago

Using Poetry

What would be a recommended way to use Poetry to install dependencies instead of pure pip? Anyone has this working in their Apify Dockerfile?
3 Replies
Alexey Udovydchenko
pip is recommended, alternatively you can create your own Dockerfile like https://github.com/apify/apify-actor-docker/blob/master/python/Dockerfile
Vlada Dusek
Vlada Dusek2y ago
Hi Honza, you can check our Beautifulsoup Scraper (https://github.com/apify/actor-beautifulsoup-scraper/blob/master/.actor/Dockerfile). I implemented it and made it work using Poetry. Check the Dockerfile and pyproject.toml. It should be enough to make it work, I also added poetry.toml and Makefile with additional poetry-related features/settings.
statutory-emerald
statutory-emeraldOP2y ago
Awesome, thanks!

Did you find this page helpful?