mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-06-05 12:07:13 +02:00
commit
0ac6d7a138
3 changed files with 4 additions and 3 deletions
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue