{"id":79846,"date":"2026-03-03T10:41:17","date_gmt":"2026-03-03T02:41:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79846.html"},"modified":"2026-03-03T10:41:17","modified_gmt":"2026-03-03T02:41:17","slug":"%e4%bf%9d%e5%a7%86%e7%ba%a7%e6%95%99%e7%a8%8b%ef%bc%9adocker-%e9%83%a8%e7%bd%b2-vue-%e9%a1%b9%e7%9b%ae-3-%e7%a7%8d%e6%96%b9%e6%a1%88%ef%bc%8c%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%94%9f%e4%ba%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79846.html","title":{"rendered":"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01"},"content":{"rendered":"<h2>\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;Docker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848&#xff0c;\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a&#xff01;<\/h2>\n<p>\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u9738\u54e5\u3002<\/p>\n<p>\u5e73\u65f6\u5f88\u591a\u7c89\u4e1d\u95ee\u6211&#xff1a;Vue \u9879\u76ee\u6253\u5305\u5b8c\u4e00\u5806 dist \u76ee\u5f55&#xff0c;\u5230\u5e95\u600e\u4e48\u7528 Docker \u8dd1\u8d77\u6765&#xff1f;\u76f4\u63a5\u6254\u5bb9\u5668\u91cc&#xff1f;\u7528 Nginx \u8fd8\u662f Node&#xff1f;\u591a\u9636\u6bb5\u6784\u5efa\u53c8\u662f\u5565&#xff1f;<\/p>\n<p>\u4eca\u5929\u8fd9\u7bc7&#xff0c;\u4e00\u6b21\u6027\u628a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\u4e09\u79cd\u573a\u666f\u7684 Docker \u90e8\u7f72\u65b9\u6848\u8bb2\u900f&#xff0c;\u4ee3\u7801\u76f4\u63a5\u590d\u5236\u5c31\u80fd\u7528&#xff0c;\u518d\u4e5f\u4e0d\u7528\u5230\u5904\u641c\u96f6\u6563\u6559\u7a0b\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u5148\u641e\u61c2&#xff1a;Vue \u90e8\u7f72\u5230\u5e95\u5728\u5e72\u561b&#xff1f;<\/h3>\n<p>\u8bf4\u767d\u4e86&#xff0c;Vue \u6253\u5305\u540e\u5c31\u662f\u7eaf\u9759\u6001\u6587\u4ef6&#xff1a;html\u3001css\u3001js\u3001\u56fe\u7247\u3002\u5b83\u4e0d\u50cf SpringBoot \u81ea\u5e26\u670d\u52a1\u5668&#xff0c;\u5fc5\u987b\u9760Web \u670d\u52a1\u5668\u6765\u6258\u7ba1\u3002<\/p>\n<p>\u6240\u4ee5 Docker \u90e8\u7f72 Vue&#xff0c;\u672c\u8d28\u5c31\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u628a dist \u76ee\u5f55\u653e\u8fdb\u5bb9\u5668<\/li>\n<li>\u7528 Nginx \u5bf9\u5916\u63d0\u4f9b\u8bbf\u95ee<\/li>\n<p>\u65b9\u6848\u4e0d\u540c&#xff0c;\u53ea\u662f\u6253\u5305\u73af\u5883\u548c\u8fd0\u884c\u73af\u5883\u7684\u533a\u522b\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u65b9\u6848\u4e00&#xff1a;\u6700\u7b80\u5355\u7c97\u66b4 \u2014\u2014 \u672c\u5730\u6253\u5305 &#043; Docker \u8fd0\u884c<\/h3>\n<p>\u9002\u5408&#xff1a;\u672c\u5730\u5df2\u7ecf npm run build \u597d dist&#xff0c;\u53ea\u60f3\u5feb\u901f\u8dd1\u8d77\u6765\u3002<\/p>\n<h4>1. \u9879\u76ee\u7ed3\u6784<\/h4>\n<p>plaintext<\/p>\n<p>vue-project\/<br \/>\n\u251c\u2500\u2500 dist\/           # \u672c\u5730\u5df2\u6253\u5305\u597d<br \/>\n\u251c\u2500\u2500 Dockerfile<br \/>\n\u2514\u2500\u2500 nginx.conf<\/p>\n<h4>2. Dockerfile<\/h4>\n<p>dockerfile<\/p>\n<p># \u76f4\u63a5\u4f7f\u7528 nginx \u955c\u50cf<br \/>\nFROM nginx:stable-alpine<\/p>\n<p># \u62f7\u8d1d\u672c\u5730 dist \u5230 nginx \u9759\u6001\u76ee\u5f55<br \/>\nCOPY dist\/ \/usr\/share\/nginx\/html\/<\/p>\n<p># \u62f7\u8d1d\u81ea\u5b9a\u4e49 nginx \u914d\u7f6e<br \/>\nCOPY nginx.conf \/etc\/nginx\/conf.d\/default.conf<\/p>\n<p># \u66b4\u9732 80 \u7aef\u53e3<br \/>\nEXPOSE 80<\/p>\n<h4>3. nginx.conf \u89e3\u51b3\u5237\u65b0 404<\/h4>\n<p>nginx<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name localhost;<br \/>\n    root \/usr\/share\/nginx\/html;<br \/>\n    index index.html;<\/p>\n<p>    # \u89e3\u51b3 Vue Router history \u6a21\u5f0f 404<br \/>\n    location \/ {<br \/>\n        try_files $uri $uri\/ \/index.html;<br \/>\n    }<br \/>\n}<\/p>\n<h4>4. \u6784\u5efa\u8fd0\u884c<\/h4>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># \u6784\u5efa\u955c\u50cf<br \/>\ndocker build -t vue-simple .<\/p>\n<p># \u542f\u52a8\u5bb9\u5668<br \/>\ndocker run -d -p 8080:80 &#8211;name vue-app vue-simple<\/p>\n<p>\u4f18\u70b9&#xff1a;\u7b80\u5355\u3001\u5feb\u7f3a\u70b9&#xff1a;\u5fc5\u987b\u672c\u5730\u6253\u5305&#xff0c;\u6362\u53f0\u673a\u5668\u5c31\u8981\u91cd\u65b0\u6253\u5305<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u65b9\u6848\u4e8c&#xff1a;\u6807\u51c6\u751f\u4ea7\u65b9\u6848 \u2014\u2014 Docker \u591a\u9636\u6bb5\u6784\u5efa<\/h3>\n<p>\u4f01\u4e1a\u91cc\u6700\u5e38\u7528&#xff01;\u4e00\u884c\u547d\u4ee4&#xff0c;\u4ece\u6e90\u7801\u5230\u8fd0\u884c&#xff0c;\u4e0d\u7528\u672c\u5730\u88c5 node\u3002<\/p>\n<h4>Dockerfile&#xff08;\u591a\u9636\u6bb5&#xff09;<\/h4>\n<p>dockerfile<\/p>\n<p># \u9636\u6bb51&#xff1a;\u6784\u5efa\u9636\u6bb5 \u2014\u2014 \u53ea\u7528\u6765\u6253\u5305<br \/>\nFROM node:16-alpine as builder<\/p>\n<p># \u8bbe\u7f6e\u5de5\u4f5c\u76ee\u5f55<br \/>\nWORKDIR \/app<\/p>\n<p># \u62f7\u8d1d package \u6587\u4ef6&#xff0c;\u5229\u7528\u7f13\u5b58<br \/>\nCOPY package*.json .\/<\/p>\n<p># \u5b89\u88c5\u4f9d\u8d56<br \/>\nRUN npm install &#8211;registry&#061;https:\/\/registry.npmmirror.com<\/p>\n<p># \u62f7\u8d1d\u6240\u6709\u6e90\u7801<br \/>\nCOPY . .<\/p>\n<p># \u6253\u5305\u751f\u4ea7\u73af\u5883<br \/>\nRUN npm run build<\/p>\n<p># &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n# \u9636\u6bb52&#xff1a;\u8fd0\u884c\u9636\u6bb5 \u2014\u2014 \u53ea\u4fdd\u7559 dist &#043; nginx&#xff0c;\u4f53\u79ef\u6781\u5c0f<br \/>\nFROM nginx:stable-alpine<\/p>\n<p># \u4ece\u6784\u5efa\u9636\u6bb5\u62f7\u8d1d dist \u5230 nginx<br \/>\nCOPY &#8211;from&#061;builder \/app\/dist \/usr\/share\/nginx\/html\/<\/p>\n<p>COPY nginx.conf \/etc\/nginx\/conf.d\/default.conf<\/p>\n<p>EXPOSE 80<\/p>\n<h4>\u8fd0\u884c\u547d\u4ee4<\/h4>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>docker build -t vue-prod .<br \/>\ndocker run -d -p 8080:80 vue-prod<\/p>\n<p>\u4f18\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u73af\u5883\u7edf\u4e00&#xff0c;\u4e0d\u4f9d\u8d56\u672c\u5730\u73af\u5883<\/li>\n<li>\u6700\u7ec8\u955c\u50cf\u6781\u5c0f&#xff0c;\u5b89\u5168\u5e72\u51c0<\/li>\n<li>\u9002\u5408 CI\/CD \u6d41\u6c34\u7ebf<\/li>\n<\/ul>\n<p>\u8fd9\u624d\u662f\u771f\u6b63\u751f\u4ea7\u7ea7\u7528\u6cd5\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u65b9\u6848\u4e09&#xff1a;\u5f00\u53d1\u70ed\u66f4\u65b9\u6848 \u2014\u2014 Docker &#043; \u672c\u5730\u5f00\u53d1<\/h3>\n<p>\u9002\u5408&#xff1a;\u60f3\u5728 Docker \u91cc\u5f00\u53d1&#xff0c;\u6539\u4ee3\u7801\u81ea\u52a8\u5237\u65b0\u3002<\/p>\n<p>dockerfile<\/p>\n<p>FROM node:16-alpine<\/p>\n<p>WORKDIR \/app<\/p>\n<p>COPY package*.json .\/<\/p>\n<p>RUN npm install<\/p>\n<p>COPY . .<\/p>\n<p># \u542f\u52a8\u5f00\u53d1\u670d\u52a1<br \/>\nCMD [&#034;npm&#034;, &#034;run&#034;, &#034;dev&#034;]<\/p>\n<p>\u8fd0\u884c\u65f6\u6620\u5c04\u7aef\u53e3\u548c\u76ee\u5f55&#xff1a;<\/p>\n<p>bash<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>docker run -d -p 3000:3000 -v $(pwd):\/app vue-dev<\/p>\n<p>\u4f18\u70b9&#xff1a;\u5f00\u53d1\u73af\u5883\u7edf\u4e00\u7f3a\u70b9&#xff1a;\u4e0d\u9002\u5408\u7ebf\u4e0a\u8fd0\u884c<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u9738\u54e5\u8e29\u5751\u603b\u7ed3&#xff08;\u5fc5\u770b&#xff01;&#xff09;<\/h3>\n<li>\n<p>Vue Router history \u6a21\u5f0f\u5237\u65b0 404\u4e00\u5b9a\u8981\u52a0 nginx \u7684 try_files $uri $uri\/ \/index.html;<\/p>\n<\/li>\n<li>\n<p>\u6784\u5efa\u65f6\u4e0b\u8f7d\u4f9d\u8d56\u6781\u6162\u7528\u6dd8\u5b9d\u955c\u50cf&#xff1a;<\/p>\n<p>plaintext<\/p>\n<p>npm install &#8211;registry&#061;https:\/\/registry.npmmirror.com<\/p>\n<\/li>\n<li>\n<p>\u591a\u9636\u6bb5\u6784\u5efa\u4e0d\u8981\u5c11\u5199 as builder\u4e0d\u7136\u7b2c\u4e8c\u9636\u6bb5\u62f7\u8d1d\u4e0d\u5230\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>dist \u76ee\u5f55\u6ca1\u66f4\u65b0\u68c0\u67e5 Dockerfile \u662f\u5426\u771f\u7684\u91cd\u65b0\u6253\u5305&#xff0c;\u800c\u4e0d\u662f\u7528\u65e7\u7f13\u5b58\u3002<\/p>\n<\/li>\n<li>\n<p>\u7aef\u53e3\u6620\u5c04\u4e0d\u5bf9\u8bbf\u95ee\u4e0d\u4e86\u5de6\u8fb9\u662f\u5bbf\u4e3b\u673a\u7aef\u53e3&#xff0c;\u53f3\u8fb9\u662f\u5bb9\u5668\u7aef\u53e3&#xff0c;\u522b\u641e\u53cd\u3002<\/p>\n<\/li>\n<hr \/>\n<h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<ul>\n<li>\u672c\u5730\u5feb\u901f\u6f14\u793a&#xff1a;\u7528\u65b9\u6848\u4e00&#xff08;\u672c\u5730\u6253\u5305 &#043; Nginx&#xff09;<\/li>\n<li>\u516c\u53f8\u751f\u4ea7\u73af\u5883&#xff1a;\u7528\u65b9\u6848\u4e8c&#xff08;\u591a\u9636\u6bb5\u6784\u5efa&#xff0c;\u6807\u51c6\u63a8\u8350&#xff09;<\/li>\n<li>Docker \u5f00\u53d1\u73af\u5883&#xff1a;\u7528\u65b9\u6848\u4e09<\/li>\n<\/ul>\n<p>\u4e00\u5957\u6d41\u7a0b\u4e0b\u6765&#xff0c;Vue \u90e8\u7f72\u518d\u4e5f\u4e0d\u662f\u7384\u5b66\u3002<\/p>\n<p>\u4f60\u5e73\u65f6\u516c\u53f8\u91cc\u7528\u7684\u662f\u54ea\u79cd\u90e8\u7f72\u65b9\u5f0f&#xff1f;Nginx \u8fd8\u662f Caddy&#xff1f;\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u5947\u8469\u7ebf\u4e0a\u95ee\u9898&#xff1f;\u8bc4\u8bba\u533a\u804a\u4e00\u804a&#xff0c;\u6211\u6765\u5e2e\u4f60\u8bca\u65ad&#xff01;<\/p>\n<p>\u6211\u662f\u9738\u54e5&#xff0c;\u6211\u4eec\u4e0b\u671f\u7ee7\u7eed\u786c\u6838\u5b9e\u6218\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;Docker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848&#xff0c;\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a&#xff01;\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u9738\u54e5\u3002\u5e73\u65f6\u5f88\u591a\u7c89\u4e1d\u95ee\u6211&#xff1a;Vue \u9879\u76ee\u6253\u5305\u5b8c\u4e00\u5806 dist \u76ee\u5f55&#xff0c;\u5230\u5e95\u600e\u4e48\u7528 Docker \u8dd1\u8d77\u6765&#xff1f;\u76f4\u63a5\u6254\u5bb9\u5668\u91cc&#xff1f;\u7528 Nginx \u8fd8\u662f Node&#xff1f;\u591a\u9636\u6bb5\u6784\u5efa\u53c8\u662f\u5565&#xff1f;\u4eca\u5929\u8fd9\u7bc7&#xff0c;\u4e00\u6b21\u6027\u628a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\u4e09\u79cd\u573a\u666f\u7684 Docker \u90e8\u7f72\u65b9\u6848\u8bb2<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,458,87,44],"topic":[],"class_list":["post-79846","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-vue","tag-87","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/79846.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;Docker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848&#xff0c;\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a&#xff01;\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u9738\u54e5\u3002\u5e73\u65f6\u5f88\u591a\u7c89\u4e1d\u95ee\u6211&#xff1a;Vue \u9879\u76ee\u6253\u5305\u5b8c\u4e00\u5806 dist \u76ee\u5f55&#xff0c;\u5230\u5e95\u600e\u4e48\u7528 Docker \u8dd1\u8d77\u6765&#xff1f;\u76f4\u63a5\u6254\u5bb9\u5668\u91cc&#xff1f;\u7528 Nginx \u8fd8\u662f Node&#xff1f;\u591a\u9636\u6bb5\u6784\u5efa\u53c8\u662f\u5565&#xff1f;\u4eca\u5929\u8fd9\u7bc7&#xff0c;\u4e00\u6b21\u6027\u628a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\u4e09\u79cd\u573a\u666f\u7684 Docker \u90e8\u7f72\u65b9\u6848\u8bb2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79846.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-03T02:41:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/79846.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79846.html\",\"name\":\"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-03T02:41:17+00:00\",\"dateModified\":\"2026-03-03T02:41:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79846.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79846.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79846.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/79846.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;Docker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848&#xff0c;\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a&#xff01;\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u9738\u54e5\u3002\u5e73\u65f6\u5f88\u591a\u7c89\u4e1d\u95ee\u6211&#xff1a;Vue \u9879\u76ee\u6253\u5305\u5b8c\u4e00\u5806 dist \u76ee\u5f55&#xff0c;\u5230\u5e95\u600e\u4e48\u7528 Docker \u8dd1\u8d77\u6765&#xff1f;\u76f4\u63a5\u6254\u5bb9\u5668\u91cc&#xff1f;\u7528 Nginx \u8fd8\u662f Node&#xff1f;\u591a\u9636\u6bb5\u6784\u5efa\u53c8\u662f\u5565&#xff1f;\u4eca\u5929\u8fd9\u7bc7&#xff0c;\u4e00\u6b21\u6027\u628a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\u4e09\u79cd\u573a\u666f\u7684 Docker \u90e8\u7f72\u65b9\u6848\u8bb2","og_url":"https:\/\/www.wsisp.com\/helps\/79846.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-03T02:41:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79846.html","url":"https:\/\/www.wsisp.com\/helps\/79846.html","name":"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-03T02:41:17+00:00","dateModified":"2026-03-03T02:41:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79846.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79846.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79846.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1aDocker \u90e8\u7f72 Vue \u9879\u76ee 3 \u79cd\u65b9\u6848\uff0c\u4ece\u5165\u95e8\u5230\u751f\u4ea7\u76f4\u63a5\u6284\u4f5c\u4e1a\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=79846"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79846\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79846"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}