diff --git a/Dockerfile b/Dockerfile index 4cb171b..2c6d548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,10 @@ RUN pip install pymongo \ requests COPY ./ ./ + +RUN chmod 777 /app/configs/sources.json + +RUN python update.py --config + +RUN python update.py --source test + diff --git a/update.py b/update.py index 8717659..eecdbdb 100644 --- a/update.py +++ b/update.py @@ -7,6 +7,7 @@ class Updater: def __init__(self): parser = argparse.ArgumentParser(description="Source parser.") parser.add_argument("--config", help='Update config action', action='store_true') + parser.add_argument("--source", type=str) self.args = parser.parse_args()