From 0977e5f712f596f6412e2320b89df93b285ba11b Mon Sep 17 00:00:00 2001 From: Craig P Steffen Date: Tue, 16 Jul 2024 13:21:21 -0500 Subject: [PATCH] dockerfile and requirementt (not tested) Prelim dockerfile and requirements for build testing; not tested at all, just saved to transfer from machine to machine. --- downloader/Dockerfile | 16 ++++++++++++++++ downloader/requirements.txt | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 downloader/Dockerfile create mode 100644 downloader/requirements.txt diff --git a/downloader/Dockerfile b/downloader/Dockerfile new file mode 100644 index 0000000..9a7543b --- /dev/null +++ b/downloader/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.11 + +# environemnt variables +ENV RABBITMQ_URI="amqp://guest:guest@localhost:5672/%2F" \ + PREFIX="" \ + CDR_TOKEN="" \ + MAX_SIZE=300 + +WORKDIR /src + +COPY requirements.txt /src/ +RUN pip install -r /src/requirements.txt + +COPY . /src/ + +CMD python CM_B_downloader.py diff --git a/downloader/requirements.txt b/downloader/requirements.txt new file mode 100644 index 0000000..2a311e0 --- /dev/null +++ b/downloader/requirements.txt @@ -0,0 +1,2 @@ +requests +pika