This commit is contained in:
cupcakearmy
2019-12-22 19:59:57 +01:00
parent 136ac20101
commit 0a0a38d9db
20 changed files with 169 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM python:{{ python_version }}-{{base_image}}
RUN pip install termcolor=={{ package_version }}
WORKDIR /app
{% if package_version == '1.1.0' %}
COPY ./new.py main.py
{% else %}
COPY ./old.py main.py
{% endif %}
CMD [ "python", "main.py" ]

View File

@@ -0,0 +1,3 @@
from termcolor import cprint
cprint('Hello 👋', 'blue', attrs=['bold'])

View File

@@ -0,0 +1,3 @@
from termcolor import colored
print(colored('Hello 👋', 'blue', attrs=['bold']))