From 1fae370f191d3bb24eeaae2ef88d811fcbe42b30 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Mon, 24 Feb 2020 14:08:18 +0000 Subject: [PATCH] [24.02.20] Path changes --- Dockerfile | 2 +- src/main.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f6e8eeb..ed98915 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ RUN apk update && \ apk add py-pip libc-dev gcc RUN pip install utils pycryptodome && \ pip install python-env coinbase -COPY / /home/price-collector/ +COPY . /home/price-collector/. EXPOSE 9090 CMD ["python", "/home/price-collector/src/main.py"] \ No newline at end of file diff --git a/src/main.py b/src/main.py index 456b57f..c9bf6bb 100644 --- a/src/main.py +++ b/src/main.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +import sys +sys.path.append('/home/price-collector/') + from threading import Thread from pricing.collector import collector