diff --git a/Dockerfile b/Dockerfile index 9af4364c..528559b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,8 +54,8 @@ EXPOSE 8081 # USER app -WORKDIR /app +WORKDIR /tmp ENTRYPOINT ["/entrypoint.sh"] -CMD ["/app/.venv/bin/python", "app/main.py"] +CMD ["/app/.venv/bin/python", "/app/app/main.py"] diff --git a/app/main.py b/app/main.py index 4decde82..4555f944 100644 --- a/app/main.py +++ b/app/main.py @@ -75,7 +75,7 @@ class Main: f'Could not create database file at {self.config.db_file}') raise e - caribou.upgrade(self.config.db_file, './app/migrations') + caribou.upgrade(self.config.db_file, os.path.join(os.path.realpath(os.path.dirname(__file__)), 'migrations')) self.loop = asyncio.get_event_loop() self.serializer = ObjectSerializer()