title: Broken DAG: [/usr/local/airflow/dags/test.py] No module named 'boto3'. How to pip install into airflow container?
body: <p>I have the following hierarchy:</p>
  <pre><code>-airflow
    -dags
      -test.py
    -deployment
      -dockerfile
      -docker compose
    -scripts
    -requirements.txt
  </code></pre>
  <p>The <code>test.py</code> file uses functions from the <code>scripts</code> directory. Some of the scripts have external import statements, like <code>import boto3</code>. I assume this is where the problem is, because when I run the airflow webserver I can see that all the DAGs which don't require those external packages load up, but the DAGs which do require them fail to load with:<br />
  <code>Broken DAG: [/usr/local/airflow/dags/test.py] No module named 'boto3'</code><br />
  The <code>docker compose</code> file looks something like this:</p>
  <pre><code>version: '3'
  services:
    webserver:
      build: .
  </code></pre>
  <p>I tried to add something like this to my <code>dockerfile</code>:</p>
  <pre><code>FROM puckel/docker-airflow:1.10.9
  
  WORKDIR /airflow
  COPY requirements.txt /airflow
  RUN pip install -U pip &amp;&amp; pip install -r requirements.txt
  </code></pre>
  <p>But the packages don't seem to get installed. How can I install my <code>requirements.txt</code> whenever I boot up the webserver (docker compose up)?</p>