查看其它 2 个回答jwhdhr的回答

jwhdhrjwhdhr软件开发工程师农商银行

通过playbook和dockerfile相结合的方式生成镜像, 示例如下:

FROM ansible/ubuntu14.04-ansible:stable
MAINTAINER xxx
ADD ansible /srv/ansible
WORKDIR /srv/ansible
RUN ansible-playbook web-app.yaml -c local
VOLUME /srv/project/static
WORKDIR /srv/project
EXPOSE 8000
CMD ["gunicorn_django", "-c", "gunicorn.conf.py"]

互联网服务 · 2020-01-03
浏览2326

回答者

jwhdhr
软件开发工程师农商银行
擅长领域: 数据库中间件消息中间件

jwhdhr 最近回答过的问题

回答状态

  • 发布时间:2020-01-03
  • 关注会员:4 人
  • 回答浏览:2326
  • X社区推广