2022-06-28 11:32:29 +00:00
|
|
|
#!/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,
|
2022-06-28 11:32:29 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|