tumbo/examples/full/build/Dockerfile.j2

13 lines
244 B
Docker
Raw Normal View History

2019-12-22 18:59:57 +00:00
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" ]