Merge pull request #12 from TheSpad/fix-entrypoint

Fix entrypoint
This commit is contained in:
simonmicro 2021-10-15 01:28:24 +02:00 committed by GitHub
commit 0ac6d7a138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -39,4 +39,4 @@ EXPOSE ${PORT}/tcp
COPY docker/entrypoint.py /usr/bin/entrypoint.py
RUN chmod a+x /usr/bin/entrypoint.py
ENTRYPOINT ['/usr/bin/python3', '/usr/bin/entrypoint.py']
ENTRYPOINT ["/usr/bin/python3", "/usr/bin/entrypoint.py"]

View file

@ -46,4 +46,4 @@ EXPOSE ${PORT}/tcp
COPY docker/entrypoint.py /usr/bin/entrypoint.py
RUN chmod a+x /usr/bin/entrypoint.py
ENTRYPOINT ['/usr/bin/python3', '/usr/bin/entrypoint.py']
ENTRYPOINT ["/usr/bin/python3", "/usr/bin/entrypoint.py"]

View file

@ -27,7 +27,8 @@ for (arg, env) in argumentVariableMapping.items():
enableSQLITE = os.environ.get('SQLITE').lower() == 'true'
os.makedirs('db', exist_ok=True)
dbPath = os.path.join(os.environ.get('PWD'), 'db', 'pykms_database.db')
dbPath = os.path.join('/home/py-kms', 'db', 'pykms_database.db')
print(dbPath)
if enableSQLITE:
command.append('-s')
command.append(dbPath)