Installing python dependencies from multiple requirements txt files with docker-astroner

Hello,

I’m new to astronomer, and am trying to use a docker-astronomer container for local unit and integration tests.

Currently I have 2 files specifying python dependencies:

  1. requirements.txt
  2. requirements-dev.txt

The first file installs automatically when running astro dev init and astro dev start. Is there a way to also install the dependencies from the file named requirements-dev.txt automatically ?

Hi @csteele,

We normally recommend against having two different requirements.txt files, especially because of possible deployment config drift.

Adding the second requirements-dev.txt might work if you add this to the Dockerfile:

FROM quay.io/astronomer/astro-runtime:5.0.8
USER root
# Install additional requirements file
COPY requirements-dev.txt .
RUN pip install --no-cache-dir -q -r requirements-dev.txt
USER astro

I tried that and it didn’t.

Thanks.