{"id":91400,"date":"2020-05-02T16:09:57","date_gmt":"2020-05-02T08:09:57","guid":{"rendered":"http:\/\/4563.org\/?p=91400"},"modified":"2020-05-02T16:09:57","modified_gmt":"2020-05-02T08:09:57","slug":"%e4%b8%80%e4%b8%aa-dockerfile-%e6%9e%84%e5%bb%ba%e4%b8%a4%e4%b8%aa%e8%af%ad%e8%a8%80","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=91400","title":{"rendered":"\u4e00\u4e2a dockerfile \u6784\u5efa\u4e24\u4e2a\u8bed\u8a00"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e00\u4e2a dockerfile \u6784\u5efa\u4e24\u4e2a\u8bed\u8a00               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : keroppi <\/span>  <span><i><\/i> 17<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7528 dockerfile \u6784\u5efa\u4e00\u4e2a PHP-FPM\uff0c\u4f46\u662f\u5ba2\u6237\u65b9\u63d0\u4f9b\u4e00\u4e2a python \u811a\u672c\u9700\u8981\u7528 PHP \u8c03\u7528\u6267\u884c\uff0c\u5373\uff1a<\/p>\n<pre><code>exec('python script.py', ....) <\/code><\/pre>\n<p>\u8fd9\u79cd PHP \u4f9d\u8d56 PYTHON \u7684 dockerfile \u5e94\u8be5\u600e\u4e48\u5199\uff1f\u8bf7\u591a\u6307\u6559<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1248160\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vhc001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e24\u4e2a\u5bb9\u5668\uff0cPython \u7ed9 PHP \u63d0\u4f9b api                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248161\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ashong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u521b\u5efa\u7684\u65f6\u5019\u5b89\u88c5\u597d \u5236\u5b9a\u7684 python \u7248\u672c\u4ee5\u53ca\u6240\u9700\u7684\u5e93 \u5c31\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248162\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DCCooper <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u641c\u7d22 \u591a\u9636\u6bb5\u6784\u5efa                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248163\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : herozzm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             php-fpm \u91cc\u9762\u5b89\u4e2a python \u5c31\u884c\u4e86 \u6784\u5efa\u4e2a\u5565                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248164\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ihidchaos <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             entrypoint.sh                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248165\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ipwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             FROM xxx<\/p>\n<p>RUN apt-get update &amp;&amp; apt install python<\/p>\n<p>\u641e\u5b9a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248166\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wellsc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rpc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a dockerfile \u6784\u5efa\u4e24&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91400"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91400"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91400\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91400"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}