Maybe a bit more information on what I am trying to do will help.
I am taking the standard datadog agent image, adding a few files to it so their agent runs my code, and install any necessary packages.
The docker file for this looks like this:
FROM datadog/docker-dd-agent
# file generated by pipreqs
ADD requirements.txt /tmp
# place check code and config to the necessary locations
ADD sla_monitor/rt-check.py /etc/dd-agent/checks.d
ADD sla_monitor/batch-check.py /etc/dd-agent/checks.d
ADD sla_monitor/kpi-check.py /etc/dd-agent/checks.d
ADD sla_monitor/conf/rt-check.yaml /etc/dd-agent/conf.d
ADD sla_monitor/conf/batch-check.yaml /etc/dd-agent/conf.d
ADD sla_monitor/conf/kpi-check.yaml /etc/dd-agent/conf.d
# install python libararies necessary for check.
RUN pip install -r /tmp/requirements.txt
So, not only am I struggling on putting files in two different locations, I also need to run pip install on the server to get all the packages in place for my added functionality.