{"id":34119,"date":"2023-11-08T11:26:29","date_gmt":"2023-08-12T14:57:35","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/"},"modified":"2024-05-04T08:06:43","modified_gmt":"2024-05-04T00:06:43","slug":"%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/","title":{"rendered":"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile"},"content":{"rendered":"<h1>\u9996\u5148 (Begins with\/Firstly)<\/h1>\n<p>\u6211\u60f3\u5728CentOS\u4e0a\u5c1d\u8bd5matsumoto-r\/ngx_mruby\uff0c\u6240\u4ee5\u6211\u5199\u4e86\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u7684Dockerfile\u3002<br \/>\n\u5b83\u53ef\u4ee5\u5728hnakamur\/docker-ngx_mruby-centos\u627e\u5230\uff0c\u5e76\u4e14\u4f7f\u7528MIT\u8bb8\u53ef\u8bc1\u3002<\/p>\n<h1>ngx_mruby\u7684\u6784\u5efa\u914d\u7f6e<\/h1>\n<p>ngx_mruby \u9ed8\u8ba4\u4f1a\u6784\u5efa\u4ee5\u4e0b\u6a21\u5757\u3002<\/p>\n<pre class=\"post-pre\"><code>  <span class=\"c1\">#<\/span>\r\n  <span class=\"c1\"># Recommended for ngx_mruby<\/span>\r\n  <span class=\"c1\">#<\/span>\r\n  <span class=\"c1\"># comment out because of moving error.h<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/iij\/mruby-io.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/iij\/mruby-process.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/iij\/mruby-pack.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/iij\/mruby-digest.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/mattn\/mruby-json.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-redis.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-vedis.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-memcached.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-sleep.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-userdata.git'<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/mattn\/mruby-onig-regexp.git'<\/span>\r\n\r\n  <span class=\"c1\"># ngx_mruby extended class<\/span>\r\n  <span class=\"n\">conf<\/span><span class=\"p\">.<\/span><span class=\"nf\">gem<\/span> <span class=\"ss\">:git<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s1\">'git:\/\/github.com\/matsumoto-r\/mruby-ngx-mruby-ext.git'<\/span>\r\n<\/code><\/pre>\n<p>\u5728\u6211\u7684Dockerfile\u4e2d\uff0c\u6211\u5bf9build_config.rb\u8fdb\u884c\u4e86\u4ee5\u4e0b\u66f4\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>    sed -i.orig \"s|conf.gem :git =&gt; 'git:\/\/github.com\/matsumoto-r\/mruby-memcached.git'|#&amp;|;\/^  conf.gem :git =&gt; 'git:\\\/\\\/github.com\\\/mattn\\\/mruby-onig-regexp.git'\/a\\\r\n\\  conf.gem :git =&gt; 'git:\/\/github.com\/iij\/mruby-env.git'\" \\\r\n      build_config.rb &amp;&amp; \\\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">mruby-memcached\u306f\u30d3\u30eb\u30c9\u5bfe\u8c61\u304b\u3089\u5916\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>matsumoto-r\/mruby-memcached\u306flibmemcached\u306e\u30bd\u30fc\u30b9\u3092\u30d3\u30eb\u30c9\u3057\u3066\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u3001mruby-memcached\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u79c1\u306f\u4f7f\u3046\u4e88\u5b9a\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u5916\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>mruby-env\u3092\u8ffd\u52a0<\/p>\n<p>mruby\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u3067\u74b0\u5883\u5909\u6570\u3092\u53c2\u7167\u3057\u305f\u304b\u3063\u305f\u306e\u3067iij\/mruby-env\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<h1>\u6784\u5efaNginx<\/h1>\n<p>\u5728matsumoto-r\/ngx_mruby\u7684Build\u6587\u6863\u4e2d\u6709\u4e09\u79cd\u65b9\u6cd5\u3002\u56e0\u4e3a\u6709\u65f6\u5019\u6211\u9700\u8981\u5728nginx\u4e2d\u6dfb\u52a0\u6a21\u5757\uff0c\u6240\u4ee5\u672c\u60f3\u4f7f\u7528\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff0c\u4f46\u662fmruby\u6ca1\u6709\u6210\u529f\u6784\u5efa\uff0c\u51fa\u73b0\u4e86\u9519\u8bef\u3002\u6240\u4ee5\u6211\u5c1d\u8bd5\u5148\u4f7f\u7528\u7b2c\u4e00\u79cd\u65b9\u6cd5\u6784\u5efamruby\uff0c\u7136\u540e\u518d\u5c1d\u8bd5\u7528\u7b2c\u4e09\u79cd\u65b9\u6cd5\u6784\u5efa\uff0c\u7ed3\u679c\u987a\u5229\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u8bf7\u6839\u636e\u9700\u8981\u8fdb\u884c\u4fee\u6539\uff0c\u4ee5\u4e0b\u662fnginx\u7684\u914d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>    .\/configure --prefix=\/usr\/local\/nginx \\\r\n      --user=nginx \\\r\n      --group=nginx \\\r\n      --with-file-aio \\\r\n      --with-ipv6 \\\r\n      --with-http_ssl_module \\\r\n      --with-http_realip_module \\\r\n      --with-http_addition_module \\\r\n      --with-http_xslt_module \\\r\n      --with-http_image_filter_module \\\r\n      --with-http_geoip_module \\\r\n      --with-http_sub_module \\\r\n      --with-http_dav_module \\\r\n      --with-http_flv_module \\\r\n      --with-http_mp4_module \\\r\n      --with-http_gzip_static_module \\\r\n      --with-http_random_index_module \\\r\n      --with-http_secure_link_module \\\r\n      --with-http_degradation_module \\\r\n      --with-http_stub_status_module \\\r\n      --with-md5-asm \\\r\n      --with-sha1-asm \\\r\n      --with-pcre-jit --with-pcre=\/usr\/local\/src\/pcre-8.35 \\\r\n      --with-cc-opt='-O2 -g' \\\r\n      --add-module=\/usr\/local\/src\/ngx_mruby \\\r\n      --add-module=\/usr\/local\/src\/ngx_mruby\/dependence\/ngx_devel_kit &amp;&amp; \\\r\n<\/code><\/pre>\n<h1>\u6784\u5efa\u6216\u5b89\u88c5\u4f9d\u8d56\u4e8emruby\u548cnginx\u7684\u5185\u5bb9\u3002<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">ruby<\/ul>\n<\/li>\n<\/ul>\n<p>mruby\u306e\u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u30022.1.1\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9<\/p>\n<p>Redis<\/p>\n<p>redis\/hiredis\u306e\u30d3\u30eb\u30c9\u306b\u5fc5\u8981<br \/>\n\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9<\/p>\n<p>redis\/hiredis<\/p>\n<p>matsumoto-r\/mruby-redis\u304c\u4f9d\u5b58<br \/>\n\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9<\/p>\n<p>PCRE &#8211; Perl Compatible Regular Expressions<\/p>\n<p>JIT\u3092\u4f7f\u3044\u305f\u3044(nginx\u306econfigure\u306e&#8211;with-pcre-jit\u30aa\u30d7\u30b7\u30e7\u30f3)\u306e\u3067\u6700\u65b0\u72488.35\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9<\/p>\n<p>GeoIP<\/p>\n<p>\u3053\u308c\u306f\u4f9d\u5b58\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u304f\u3001nginx\u306bGeoIP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d44\u307f\u8fbc\u3093\u3067(nginx\u306econfigure\u306e&#8211;with-http_geoip_module\u30aa\u30d7\u30b7\u30e7\u30f3)\u30d3\u30eb\u30c9\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u5229\u7528\u3002<br \/>\nepel\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u5834\u5408\u306fHow to install Nginx GeoIP module\u304c\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3067\u3059\uff08\u8a66\u3057\u3066\u306a\u3044\u3067\u3059\uff09\u3002<\/p>\n<h1>\u6784\u5efaDocker\u955c\u50cf<\/h1>\n<p>\u60a8\u53ef\u4ee5\u5728\u5305\u542bDockerfile\u7684\u76ee\u5f55\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">docker build -t hnakamur\/ngx_mruby .\r\n<\/span><\/code><\/pre>\n<h1>\u542f\u52a8\u5bb9\u5668<\/h1>\n<p>\u4f7f\u7528 Qiita \u4e0a\u7684\u6587\u7ae0\u4e2d\u63d0\u4f9b\u7684\u5bb9\u5668\uff0c\u901a\u8fc7 docker \u5728 lua-resty-redis \u7684\u5bb9\u5668\u4e0e redis \u7684\u5bb9\u5668\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u7684\u793a\u4f8b\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 redis \u5bb9\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">docker run -d -p 6379:6379 -name redis hnakamur\/redis\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8ngx_mruby\u5bb9\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">docker run -d -p 80:80 -link redis:redis hnakamur\/ngx_mruby\r\n<\/span><\/code><\/pre>\n<h1>\u4ecengx_mruby\u8bbf\u95eeredis\u7684\u793a\u4f8b<\/h1>\n<p>\u9996\u5148\uff0c\u4e3a\u4e86\u4f7f\u7528Docker\u5f15\u7528\u73af\u5883\u53d8\u91cf\uff0c\u5728nginx.conf\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>env REDIS_PORT_6379_TCP_ADDR;\r\nenv REDIS_PORT_6379_TCP_PORT;\r\n<\/code><\/pre>\n<p>\/redis\u7684\u4f4d\u7f6e\u8bbe\u7f6e\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>        location \/redis {\r\n            mruby_content_handler \/usr\/local\/nginx\/conf\/get_redis.rb;\r\n        }\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"n\">host<\/span> <span class=\"o\">=<\/span> <span class=\"no\">ENV<\/span><span class=\"p\">[<\/span><span class=\"s2\">\"REDIS_PORT_6379_TCP_ADDR\"<\/span><span class=\"p\">]<\/span>\r\n<span class=\"n\">port<\/span> <span class=\"o\">=<\/span> <span class=\"no\">ENV<\/span><span class=\"p\">[<\/span><span class=\"s2\">\"REDIS_PORT_6379_TCP_PORT\"<\/span><span class=\"p\">].<\/span><span class=\"nf\">to_i<\/span>\r\n<span class=\"n\">db<\/span> <span class=\"o\">=<\/span> <span class=\"no\">Redis<\/span><span class=\"p\">.<\/span><span class=\"nf\">new<\/span> <span class=\"n\">host<\/span><span class=\"p\">,<\/span> <span class=\"n\">port<\/span>\r\n\r\n<span class=\"c1\"># Note: a value must be String<\/span>\r\n<span class=\"c1\"># &gt; db.set \"key1\", 100<\/span>\r\n<span class=\"c1\"># (mirb):1: expected String (TypeError)<\/span>\r\n\r\n<span class=\"n\">db<\/span><span class=\"p\">.<\/span><span class=\"nf\">set<\/span> <span class=\"s2\">\"key1\"<\/span><span class=\"p\">,<\/span> <span class=\"s2\">\"100\"<\/span>\r\n\r\n<span class=\"n\">value<\/span> <span class=\"o\">=<\/span> <span class=\"n\">db<\/span><span class=\"p\">.<\/span><span class=\"nf\">get<\/span> <span class=\"s2\">\"key1\"<\/span>\r\n\r\n<span class=\"n\">r<\/span> <span class=\"o\">=<\/span> <span class=\"no\">Nginx<\/span><span class=\"o\">::<\/span><span class=\"no\">Request<\/span><span class=\"p\">.<\/span><span class=\"nf\">new<\/span>\r\n<span class=\"n\">r<\/span><span class=\"p\">.<\/span><span class=\"nf\">content_type<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"text\/html\"<\/span>\r\n<span class=\"no\">Nginx<\/span><span class=\"p\">.<\/span><span class=\"nf\">rputs<\/span> <span class=\"s2\">\"host = <\/span><span class=\"si\">#{<\/span><span class=\"n\">host<\/span><span class=\"si\">}<\/span><span class=\"s2\">, port = <\/span><span class=\"si\">#{<\/span><span class=\"n\">port<\/span><span class=\"si\">}<\/span><span class=\"s2\">, value is <\/span><span class=\"si\">#{<\/span><span class=\"n\">value<\/span><span class=\"si\">}<\/span><span class=\"se\">\\n<\/span><span class=\"s2\">\"<\/span>\r\n<\/code><\/pre>\n<p>\u5728\u6211\u7684\u73af\u5883\u4e2d\uff0c\u6211\u4f7f\u7528Docker\u5c06lua-resty-redis\u7684\u5bb9\u5668\u4e0eredis\u5bb9\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u793a\u4f8b\uff0c\u5c31\u50cf\u5728Qiita\u4e0a\u5199\u7684\u90a3\u6837\u3002\u6211\u5df2\u8bbe\u7f6e\u5c068080\u7aef\u53e3\u8f6c\u53d1\u523080\u7aef\u53e3\uff0c\u56e0\u6b64\u5728OSX\u4e0a\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">curl http:\/\/localhost:8080\/redis\r\n<\/span><\/code><\/pre>\n<p>\u5f53\u60a8\u8bbf\u95ee\u65f6<\/p>\n<pre class=\"post-pre\"><code>host = 172.17.0.2, port = 6379, value is 100\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u5f97\u5230\u7c7b\u4f3c\u7684\u8f93\u51fa\u3002 de<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 (Begins with\/Firstly) \u6211\u60f3\u5728CentOS\u4e0a\u5c1d\u8bd5matsumoto-r\/ngx_mr [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34119","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728centos\u4e0a\u6784\u5efangx_mruby\u7684dockerfile\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 (Begins with\/Firstly) \u6211\u60f3\u5728CentOS\u4e0a\u5c1d\u8bd5matsumoto-r\/ngx_mr [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728centos\u4e0a\u6784\u5efangx_mruby\u7684dockerfile\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-12T14:57:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T00:06:43+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/\",\"name\":\"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-12T14:57:35+00:00\",\"dateModified\":\"2024-05-04T00:06:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728centos\u4e0a\u6784\u5efangx_mruby\u7684dockerfile\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile","og_description":"\u9996\u5148 (Begins with\/Firstly) \u6211\u60f3\u5728CentOS\u4e0a\u5c1d\u8bd5matsumoto-r\/ngx_mr [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728centos\u4e0a\u6784\u5efangx_mruby\u7684dockerfile\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-12T14:57:35+00:00","article_modified_time":"2024-05-04T00:06:43+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/","name":"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-12T14:57:35+00:00","dateModified":"2024-05-04T00:06:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5c1d\u8bd5\u5199\u4e86\u4e00\u4e2a\u5728CentOS\u4e0a\u6784\u5efangx_mruby\u7684Dockerfile"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aa%e5%9c%a8centos%e4%b8%8a%e6%9e%84%e5%bb%bangx_mruby%e7%9a%84dockerfile%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34119"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34119\/revisions"}],"predecessor-version":[{"id":97135,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34119\/revisions\/97135"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}