diff --git a/Dockerfile b/Dockerfile index 65ca21d..05a092b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM python:3 -ADD converter.py / +ADD converter.py /app/ -RUN pip install OfxParser +RUN pip install ofxparse RUN pip install watchdog -CMD [ "python", "./converter.py" ] \ No newline at end of file +CMD [ "python", "./app/converter.py" ] \ No newline at end of file diff --git a/converter.py b/converter.py index f7540dc..8b2abe9 100644 --- a/converter.py +++ b/converter.py @@ -12,7 +12,8 @@ import watchdog.events import watchdog.observers DATE_FORMAT = "%d/%m/%Y" -WATCH_DIR = os.path.dirname(os.path.realpath(__file__)) +#WATCH_DIR = os.path.dirname(os.path.realpath(__file__)) +WATCH_DIR = '/mnt/data/' PATTERN = '*.qfx' BACKUP_DIR = 'Imported'