我有以下工作dockerfile,
#using python3.6 image
FROM python:3.6
ENV PYTHONUNBUFFERED 1
#Installing required packages
RUN apt-get update
RUN apt-get install libsasl2-dev libldap2-dev libssl-dev python3-dev psmisc -y
#Installing a pip package which has django project in-built
RUN pip install <pip-package>
#Running a script-> appmanage.py, which installs a app to django project
RUN appmanage.py appconfig
#Running the django development server.
CMD ["manage.py","runserver","0.0.0.0:8000"]
我如何为此设计一个 okd/openshift 模板 yaml/json?我更喜欢一个模板,其中 docker image-build 将在模板本身中处理,而不是使用 docker build 构建图像并在模板中使用带有标签的图像名称。