tdesktop/Telegram/build/docker/centos_env/gen_dockerfile.py

14 lines
427 B
Python
Raw Normal View History

#!/usr/bin/env python3
from os import environ
from os.path import dirname
from jinja2 import Environment, FileSystemLoader
def main():
print(Environment(loader=FileSystemLoader(dirname(__file__))).get_template("Dockerfile").render(
2022-11-03 19:47:28 +00:00
DEBUG=bool(len(environ["DEBUG"])) if "DEBUG" in environ else True,
LTO=bool(len(environ["LTO"])) if "LTO" in environ else True,
))
if __name__ == '__main__':
main()