From 5cdd34aedbff342dd4b9d2e3d8c36da7c33c7ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Thu, 16 Nov 2023 14:25:06 +0100 Subject: [PATCH] fix: install apify dependencies in the Dockerfile The wrapper requirements file got renamed, so the docker build will fail in projects without their own `requirements.txt`. While this is still not 100%, I guess it's safer to preinstall our deps and let the user modify the Dockerfile for their (custom) dependency installation. --- wrappers/python-scrapy/.actor/Dockerfile.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/python-scrapy/.actor/Dockerfile.template b/wrappers/python-scrapy/.actor/Dockerfile.template index 2b3a8f17..2533fda6 100644 --- a/wrappers/python-scrapy/.actor/Dockerfile.template +++ b/wrappers/python-scrapy/.actor/Dockerfile.template @@ -6,7 +6,7 @@ FROM apify/actor-python:3.11 # Second, copy just requirements.txt into the Actor image, # since it should be the only file that affects the dependency install in the next step, # in order to speed up the build -COPY requirements.txt ./ +COPY requirements_apify.txt ./ # Install the packages specified in requirements.txt, # Print the installed Python version, pip version @@ -16,7 +16,7 @@ RUN echo "Python version:" \ && echo "Pip version:" \ && pip --version \ && echo "Installing dependencies:" \ - && pip install -r requirements.txt \ + && pip install -r requirements_apify.txt \ && echo "All installed Python packages:" \ && pip freeze