mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-11 21:45:11 +08:00
@@ -39,4 +39,4 @@ EXPOSE ${PORT}/tcp
|
|||||||
|
|
||||||
COPY docker/entrypoint.py /usr/bin/entrypoint.py
|
COPY docker/entrypoint.py /usr/bin/entrypoint.py
|
||||||
RUN chmod a+x /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
|
COPY docker/entrypoint.py /usr/bin/entrypoint.py
|
||||||
RUN chmod a+x /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'
|
enableSQLITE = os.environ.get('SQLITE').lower() == 'true'
|
||||||
os.makedirs('db', exist_ok=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:
|
if enableSQLITE:
|
||||||
command.append('-s')
|
command.append('-s')
|
||||||
command.append(dbPath)
|
command.append(dbPath)
|
||||||
|
Reference in New Issue
Block a user