{"id":14697,"date":"2024-02-08T00:57:50","date_gmt":"2024-02-07T21:27:50","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=14697"},"modified":"2024-02-08T00:57:50","modified_gmt":"2024-02-07T21:27:50","slug":"how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/","title":{"rendered":"How to build a Node.js application with Docker"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u0645\u0642\u062f\u0645\u0647<\/h2>\n<p>\u067e\u0644\u062a\u0641\u0631\u0645 Docker \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u0646\u062f. \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u06cc\u06a9 \u0641\u0631\u0622\u06cc\u0646\u062f \u0645\u062c\u0632\u0627 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0645\u0634\u062a\u0631\u06a9 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0648\u0632\u0646 \u0633\u0628\u06a9 \u062a\u0631\u06cc \u0628\u0631\u0627\u06cc \u0645\u0627\u0634\u06cc\u0646 \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f. \u0627\u06af\u0631\u0686\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u062c\u062f\u06cc\u062f \u0646\u06cc\u0633\u062a\u0646\u062f\u060c \u0627\u0645\u0627 \u0645\u0632\u0627\u06cc\u0627\u06cc\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u0646\u062f &#8211; \u0627\u0632 \u062c\u0645\u0644\u0647 \u062c\u062f\u0627\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u0648 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f\u0633\u0627\u0632\u06cc \u0645\u062d\u06cc\u0637 &#8211; \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0639\u0645\u0627\u0631\u06cc \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u062a\u0648\u0632\u06cc\u0639 \u0634\u062f\u0647 \u0628\u06cc\u0634\u062a\u0631 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u0647\u0645\u06cc\u062a \u0622\u0646\u0647\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u06cc \u06cc\u0627\u0628\u062f.<\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a\u0646 \u0648 \u0645\u0642\u06cc\u0627\u0633\u200c\u0628\u0646\u062f\u06cc \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0627 \u062f\u0627\u06a9\u0631\u060c \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0627\u0633\u062a \u06a9\u0647 \u0633\u067e\u0633 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u0645\u0644 \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647\u060c \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627\u060c \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc\u060c \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u0645\u062d\u06cc\u0637\u06cc \u0648 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06cc\u06a9 \u062a\u0635\u0648\u06cc\u0631 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0645\u062d\u06cc\u0637 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0634\u0645\u0627 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0641\u0642\u0637 \u0634\u0627\u0645\u0644 \u0645\u0648\u0627\u0631\u062f\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u0648 \u0627\u062c\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 Express \u0648 Bootstrap \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f. \u0633\u067e\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u062a\u0635\u0648\u06cc\u0631 \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u0628\u0647 Docker Hub \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f. \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u062a\u0635\u0648\u06cc\u0631 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647 \u0631\u0627 \u0627\u0632 \u0645\u062e\u0632\u0646 Docker Hub \u062e\u0648\u062f \u0628\u06cc\u0631\u0648\u0646 \u0645\u06cc\u200c\u0622\u0648\u0631\u06cc\u062f \u0648 \u062f\u0631 \u06a9\u0627\u0646\u062a\u0627\u06cc\u0646\u0631 \u062f\u06cc\u06af\u0631\u06cc \u0645\u06cc\u200c\u0633\u0627\u0632\u06cc\u062f \u0648 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632\u0633\u0627\u0632\u06cc \u0648 \u0645\u0642\u06cc\u0627\u0633 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627<\/h2>\n<ul>\n<li>\u0633\u0631\u0648\u0631\u06cc \u06a9\u0647 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f\u060c \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u063a\u06cc\u0631 \u0631\u06cc\u0634\u0647 \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a sudo \u0648 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0641\u0639\u0627\u0644. \u0628\u0631\u0627\u06cc \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f\u060c \u0644\u0637\u0641\u0627\u064b \u062a\u0648\u0632\u06cc\u0639 \u062e\u0648\u062f \u0631\u0627 \u0627\u0632 \u0627\u06cc\u0646 \u0644\u06cc\u0633\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 \u0627\u0648\u0644\u06cc\u0647 \u0633\u0631\u0648\u0631 \u0645\u0627 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>Docker \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<\/li>\n<li>Node.js \u0648 npm \u0646\u0635\u0628 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<\/li>\n<li>\u06cc\u06a9 \u062d\u0633\u0627\u0628 Docker Hub.<\/li>\n<\/ul>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-1-%d9%86%d8%b5%d8%a8-%d9%88%d8%a7%d8%a8%d8%b3%d8%aa%da%af%db%8c-%d9%87%d8%a7%db%8c-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-%d8%b4%d9%85%d8%a7\">\u0645\u0631\u062d\u0644\u0647 1 &#8211; \u0646\u0635\u0628 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627<\/h2>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f\u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f\u060c \u0633\u067e\u0633 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646\u0647\u0627 \u0631\u0627 \u062f\u0631 \u06a9\u0627\u0646\u062a\u0627\u06cc\u0646\u0631 \u062e\u0648\u062f \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0634\u0627\u0645\u0644 \u0645\u062d\u062a\u0648\u0627\u06cc \u062b\u0627\u0628\u062a\u060c \u06a9\u062f \u0648 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>\u0627\u0628\u062a\u062f\u0627 \u06cc\u06a9 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062e\u0627\u0646\u06af\u06cc \u06a9\u0627\u0631\u0628\u0631 \u063a\u06cc\u0631 \u0631\u06cc\u0634\u0647 \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0645\u0627 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0631\u0627 node_project \u0645\u06cc \u0646\u0627\u0645\u06cc\u0645\u060c \u0627\u0645\u0627 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0628\u0627 \u062e\u06cc\u0627\u0644 \u0631\u0627\u062d\u062a \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0686\u06cc\u0632 \u062f\u06cc\u06af\u0631\u06cc \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mkdir node_project<\/code><\/pre>\n<\/div>\n<p>\u0628\u0647 \u0627\u06cc\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0628\u0631\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd node_project<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0627\u0635\u0644\u06cc \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p>\u0633\u067e\u0633\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0644 package.json \u0628\u0627 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0648 \u0633\u0627\u06cc\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0646\u0648 \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u0648\u0631\u062f \u0639\u0644\u0627\u0642\u0647 \u062e\u0648\u062f \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano package.json<\/code><\/pre>\n<\/div>\n<p>\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u067e\u0631\u0648\u0698\u0647\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u0646\u0627\u0645\u060c \u0646\u0648\u06cc\u0633\u0646\u062f\u0647\u060c \u0645\u062c\u0648\u0632\u060c \u0646\u0642\u0637\u0647 \u0648\u0631\u0648\u062f\u06cc \u0648 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f. \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u0648 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062a\u0645\u0627\u0633 \u062e\u0648\u062f \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>{\r\n\"name\": \"nodejs-image-demo\",\r\n\"version\": \"1.0.0\",\r\n\"description\": \"nodejs image demo\",\r\n\"author\": \"Sammy the Shark &lt;sammy@example.com&gt;\",\r\n\"license\": \"MIT\",\r\n\"main\": \"app.js\",\r\n\"keywords\": [\r\n\"nodejs\",\r\n\"bootstrap\",\r\n\"express\"\r\n],\r\n\"dependencies\": {\r\n\"express\": \"^4.16.4\"\r\n}\r\n}<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0634\u0627\u0645\u0644 \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647\u060c \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0648 \u0645\u062c\u0648\u0632\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062a\u062d\u062a \u0622\u0646 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0634\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f. Npm \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0631\u0627 \u06a9\u0648\u062a\u0627\u0647 \u0648 \u062a\u0648\u0635\u06cc\u0641\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u062a\u06a9\u0631\u0627\u0631 \u062f\u0631 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc npm \u062e\u0648\u062f\u062f\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f. \u0645\u0627 \u0645\u062c\u0648\u0632 MIT \u0631\u0627 \u062f\u0631 \u0642\u0633\u0645\u062a \u0645\u062c\u0648\u0632 \u0641\u0647\u0631\u0633\u062a \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645 \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u062a\u0648\u0632\u06cc\u0639 \u0631\u0627\u06cc\u06af\u0627\u0646 \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f.\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0641\u0627\u06cc\u0644 \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<ul>\n<li>&#8220;main&#8221;: \u0646\u0642\u0637\u0647 \u0648\u0631\u0648\u062f\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u060c app.js. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.<\/li>\n<li>&#8220;\u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627&#8221;: \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 &#8211; \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f\u060c Express 4.16.4 \u06cc\u0627 \u0628\u0627\u0644\u0627\u062a\u0631.<\/li>\n<\/ul>\n<p>\u0627\u06af\u0631\u0686\u0647 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0641\u0647\u0631\u0633\u062a \u0646\u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u067e\u06cc\u0631\u0648\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627 \u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0632\u0646 \u0628\u0647 \u0641\u0627\u06cc\u0644 package.json \u062e\u0648\u062f\u060c \u0622\u0646 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f. \u0627\u06af\u0631 \u062f\u0631 \u062d\u0627\u0644 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f\u060c \u0627\u06cc\u0646 \u06cc\u06a9 \u0627\u0641\u0632\u0648\u062f\u0646\u06cc \u062e\u0648\u0628 \u0627\u0633\u062a.\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u060c \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>npm install<\/code><\/pre>\n<\/div>\n<p>\u0628\u0627 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0633\u062a\u0647 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 package.json \u062e\u0648\u062f \u0641\u0647\u0631\u0633\u062a \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0645\u06cc \u0634\u0648\u062f.\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0647 \u0633\u0627\u062e\u062a \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u067e\u0631\u062f\u0627\u0632\u06cc\u0645.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-2-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%d9%81%d8%a7%db%8c%d9%84-%d9%87%d8%a7%db%8c-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87\">\u0645\u0631\u062d\u0644\u0647 2 &#8211; \u0627\u06cc\u062c\u0627\u062f \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647<\/h2>\n<p>\u0645\u0627 \u06cc\u06a9 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u06a9\u0648\u0633\u0647 \u0647\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f. \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0627 \u062f\u0627\u0631\u0627\u06cc \u06cc\u06a9 \u0648\u0631\u0648\u062f\u06cc \u0627\u0635\u0644\u06cc\u060c app.js \u0648 \u06cc\u06a9 \u0641\u0647\u0631\u0633\u062a views \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u06a9\u0647 \u0634\u0627\u0645\u0644 \u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\u06cc \u062b\u0627\u0628\u062a \u067e\u0631\u0648\u0698\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f\u060c index.html\u060c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0648\u0644\u06cc\u0647 \u0648 \u067e\u06cc\u0648\u0646\u062f\u06cc \u0628\u0647 \u0635\u0641\u062d\u0647 \u0627\u06cc \u0628\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0642\u06cc\u0642 \u062a\u0631 \u06a9\u0648\u0633\u0647\u060c sharks.html \u0631\u0627 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u062f. \u062f\u0631 \u0641\u0647\u0631\u0633\u062a views\u060c \u0647\u0645 \u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f \u0648 \u0647\u0645 sharks.html \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u0627\u0628\u062a\u062f\u0627 app.js \u0631\u0627 \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0627\u0635\u0644\u06cc \u067e\u0631\u0648\u0698\u0647 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano app.js<\/code><\/pre>\n<\/div>\n<p>\u0642\u0633\u0645\u062a \u0627\u0648\u0644 \u0641\u0627\u06cc\u0644\u060c \u0627\u0634\u06cc\u0627\u0621 \u0628\u0631\u0646\u0627\u0645\u0647 Express \u0648 Router \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0648 \u067e\u0648\u0631\u062a \u067e\u0627\u06cc\u0647 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062b\u0627\u0628\u062a \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><\/code><\/pre>\n<pre class=\"language-javascript\"><code><span class=\"token keyword\">const<\/span> express <span class=\"token operator\">=<\/span> <span class=\"token function\">require<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'express'<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token keyword\">const<\/span> app <span class=\"token operator\">=<\/span> <span class=\"token function\">express<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token keyword\">const<\/span> router <span class=\"token operator\">=<\/span> express<span class=\"token punctuation\">.<\/span><span class=\"token function\">Router<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n<span class=\"token keyword\">const<\/span> path <span class=\"token operator\">=<\/span> __dirname <span class=\"token operator\">+<\/span> <span class=\"token string\">'\/views\/'<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token keyword\">const<\/span> port <span class=\"token operator\">=<\/span> <span class=\"token number\">8080<\/span><span class=\"token punctuation\">;<\/span><\/code><code><\/code><\/pre>\n<\/div>\n<p>\u062a\u0627\u0628\u0639 \u0646\u06cc\u0627\u0632 \u0645\u0627\u0698\u0648\u0644 \u0627\u06a9\u0633\u067e\u0631\u0633 \u0631\u0627 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0645\u06cc \u06a9\u0646\u062f\u060c \u06a9\u0647 \u0633\u067e\u0633 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0648 \u0627\u0634\u06cc\u0627\u0621 \u0631\u0648\u062a\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0634\u06cc \u0631\u0648\u062a\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0645\u0633\u06cc\u0631\u06cc\u0627\u0628\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u062f\u060c \u0648 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0645\u062a\u062f HTTP \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0634\u06cc \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0646\u062d\u0648\u0647 \u0631\u0633\u06cc\u062f\u06af\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0627 \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0647\u0627 \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u0627\u06cc\u0646 \u0628\u062e\u0634 \u0627\u0632 \u0641\u0627\u06cc\u0644 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0686\u0646\u062f \u062b\u0627\u0628\u062a\u060c <code>Path<\/code> \u0648 <code>Port<\/code> \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<ul>\n<li>path: \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u067e\u0627\u06cc\u0647 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0632\u06cc\u0631 \u0634\u0627\u062e\u0647 views \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u067e\u0631\u0648\u0698\u0647 \u0641\u0639\u0644\u06cc \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/li>\n<li>\u067e\u0648\u0631\u062a: \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u0628\u0647 \u067e\u0648\u0631\u062a 8080 \u06af\u0648\u0634 \u062f\u0627\u062f\u0647 \u0648 \u0628\u0647 \u0622\u0646 \u0645\u062a\u0635\u0644 \u0634\u0648\u062f.<\/li>\n<\/ul>\n<p>\u0633\u067e\u0633\u060c \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u06cc \u0631\u0648\u062a\u0631 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nrouter.use(function (req,res,next) {\r\nconsole.log('\/' + req.method);\r\nnext();\r\n});\r\nrouter.get('\/', function(req,res){\r\nres.sendFile(path + 'index.html');\r\n});\r\nrouter.get('\/sharks', function(req,res){\r\nres.sendFile(path + 'sharks.html');\r\n});<\/code><\/pre>\n<\/div>\n<p>\u062a\u0627\u0628\u0639 router.use \u06cc\u06a9 \u062a\u0627\u0628\u0639 \u0645\u06cc\u0627\u0646\u200c\u0627\u0641\u0632\u0627\u0631 \u0631\u0627 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0631\u0648\u062a\u0631 \u0631\u0627 \u062b\u0628\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646\u0647\u0627 \u062f\u0631 \u062a\u0648\u0627\u0628\u0639 \u0628\u0639\u062f\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u06a9\u0647 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a GET \u0628\u0647 URL \u067e\u0631\u0648\u0698\u0647 \u067e\u0627\u06cc\u0647 \u0628\u0627\u06cc\u062f \u0635\u0641\u062d\u0647 index.html \u0631\u0627 \u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f\u060c \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a GET \u0628\u0647 \u0645\u0633\u06cc\u0631 \/sharks \u0628\u0627\u06cc\u062f sharks.html \u0631\u0627 \u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f.<\/p>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u0645\u06cc\u0627\u0646\u200c\u0627\u0641\u0632\u0627\u0631 \u0631\u0648\u062a\u0631 \u0648 \u062f\u0627\u0631\u0627\u06cc\u06cc\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0633\u0648\u0627\u0631 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u06af\u0648\u06cc\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u067e\u0648\u0631\u062a 8080 \u06af\u0648\u0634 \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\napp.use(express.static(path));\r\napp.use('\/', router);\r\napp.listen(port, function () {\r\nconsole.log('Example app listening on port 8080!')\r\n})<\/code><\/pre>\n<\/div>\n<p>\u0641\u0627\u06cc\u0644 app.js \u062a\u0645\u0627\u0645 \u0634\u062f\u0647 \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>const express = require('express');\r\nconst app = express();\r\nconst router = express.Router();\r\nconst path = __dirname + '\/views\/';\r\nconst port = 8080;\r\nrouter.use(function (req,res,next) {\r\nconsole.log('\/' + req.method);\r\nnext();\r\n});\r\nrouter.get('\/', function(req,res){\r\nres.sendFile(path + 'index.html');\r\n});\r\nrouter.get('\/sharks', function(req,res){\r\nres.sendFile(path + 'sharks.html');\r\n});\r\napp.use(express.static(path));\r\napp.use('\/', router);\r\napp.listen(port, function () {\r\nconsole.log('Example app listening on port 8080!')\r\n})<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0645\u0642\u062f\u0627\u0631\u06cc \u0645\u062d\u062a\u0648\u0627\u06cc \u062b\u0627\u0628\u062a \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645. \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc views \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mkdir views<\/code><\/pre>\n<\/div>\n<p>\u0641\u0627\u06cc\u0644 \u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f\u060c index.html \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano views\/index.html<\/code><\/pre>\n<\/div>\n<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f\u060c \u06a9\u0647 \u0628\u0648\u062a \u0627\u0633\u062a\u0631\u067e \u0631\u0627 \u0648\u0627\u0631\u062f \u0645\u06cc \u06a9\u0646\u062f \u0648 \u06cc\u06a9 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a jumbotron \u0628\u0627 \u067e\u06cc\u0648\u0646\u062f \u0628\u0647 \u0635\u0641\u062d\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0642\u06cc\u0642 sharks.html \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;About Sharks&lt;\/title&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\r\n&lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" integrity=\"sha384-MCw98\/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO\" crossorigin=\"anonymous\"&gt;\r\n&lt;link href=\"css\/styles.css\" rel=\"stylesheet\"&gt;\r\n&lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Merriweather:400,700\" rel=\"stylesheet\" type=\"text\/css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;nav class=\"navbar navbar-dark bg-dark navbar-static-top navbar-expand-md\"&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;button type=\"button\" class=\"navbar-toggler collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\" aria-expanded=\"false\"&gt; &lt;span class=\"sr-only\"&gt;Toggle navigation&lt;\/span&gt;\r\n&lt;\/button&gt; &lt;a class=\"navbar-brand\" href=\"#\"&gt;Everything Sharks&lt;\/a&gt;\r\n&lt;div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\"&gt;\r\n&lt;ul class=\"nav navbar-nav mr-auto\"&gt;\r\n&lt;li class=\"active nav-item\"&gt;&lt;a href=\"\/\" class=\"nav-link\"&gt;Home&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;li class=\"nav-item\"&gt;&lt;a href=\"\/sharks\" class=\"nav-link\"&gt;Sharks&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/nav&gt;\r\n&lt;div class=\"jumbotron\"&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;h1&gt;Want to Learn About Sharks?&lt;\/h1&gt;\r\n&lt;p&gt;Are you ready to learn about sharks?&lt;\/p&gt;\r\n&lt;br&gt;\r\n&lt;p&gt;&lt;a class=\"btn btn-primary btn-lg\" href=\"\/sharks\" role=\"button\"&gt;Get Shark Info&lt;\/a&gt;\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;div class=\"row\"&gt;\r\n&lt;div class=\"col-lg-6\"&gt;\r\n&lt;h3&gt;Not all sharks are alike&lt;\/h3&gt;\r\n&lt;p&gt;Though some are dangerous, sharks generally do not attack humans. Out of the 500 species known to researchers, only 30 have been known to attack humans.\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"col-lg-6\"&gt;\r\n&lt;h3&gt;Sharks are ancient&lt;\/h3&gt;\r\n&lt;p&gt;There is evidence to suggest that sharks lived up to 400 million years ago.\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<\/div>\n<p>\u0646\u0648\u0627\u0631 \u0646\u0627\u0648\u0628\u0631\u06cc \u0633\u0637\u062d \u0628\u0627\u0644\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u0628\u06cc\u0646 \u0635\u0641\u062d\u0627\u062a Home \u0648 Sharks \u062c\u0627\u0628\u062c\u0627 \u0634\u0648\u0646\u062f. \u062f\u0631 \u0632\u06cc\u0631 \u0645\u0648\u0644\u0641\u0647 navbar-nav\u060c \u0645\u0627 \u0627\u0632 \u06a9\u0644\u0627\u0633 \u0641\u0639\u0627\u0644 Bootstrap \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u0635\u0641\u062d\u0647 \u0641\u0639\u0644\u06cc \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0645\u0627 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0635\u0641\u062d\u0627\u062a \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u062e\u0648\u062f \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u06a9\u0647 \u0628\u0627 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 app.js \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\n&lt;div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\"&gt;\r\n&lt;ul class=\"nav navbar-nav mr-auto\"&gt;\r\n&lt;li class=\"active nav-item\"&gt;&lt;a href=\"\/\" class=\"nav-link\"&gt;Home&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;li class=\"nav-item\"&gt;&lt;a href=\"\/sharks\" class=\"nav-link\"&gt;Sharks&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n...<\/code><\/pre>\n<\/div>\n<p>\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0645\u0627 \u067e\u06cc\u0648\u0646\u062f\u06cc \u0628\u0647 \u0635\u0641\u062d\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0648\u0633\u0647 \u062e\u0648\u062f \u062f\u0631 \u062f\u06a9\u0645\u0647 jumbotrons \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\n&lt;div class=\"jumbotron\"&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;h1&gt;Want to Learn About Sharks?&lt;\/h1&gt;\r\n&lt;p&gt;Are you ready to learn about sharks?&lt;\/p&gt;\r\n&lt;br&gt;\r\n&lt;p&gt;&lt;a class=\"btn btn-primary btn-lg\" href=\"\/sharks\" role=\"button\"&gt;Get Shark Info&lt;\/a&gt;\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n...<\/code><\/pre>\n<\/div>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 \u067e\u06cc\u0648\u0646\u062f\u06cc \u0628\u0647 \u06cc\u06a9 \u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0633\u0641\u0627\u0631\u0634\u06cc \u062f\u0631 \u0647\u062f\u0631 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\n&lt;link href=\"css\/styles.css\" rel=\"stylesheet\"&gt;\r\n...<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0627\u06cc\u0646 \u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.\u0628\u0627 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f \u0628\u0631\u0646\u0627\u0645\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0635\u0641\u062d\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0648\u0633\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 sharks.html \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0639\u0644\u0627\u0642\u0647\u200c\u0645\u0646\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u06a9\u0648\u0633\u0647\u200c\u0647\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano views\/sharks.html<\/code><\/pre>\n<\/div>\n<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f\u060c \u06a9\u0647 Bootstrap \u0648 \u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0633\u0641\u0627\u0631\u0634\u06cc \u0631\u0627 \u0648\u0627\u0631\u062f \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0642\u06cc\u0642\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u06a9\u0648\u0633\u0647 \u0647\u0627\u06cc \u062e\u0627\u0635 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;About Sharks&lt;\/title&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\r\n&lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" integrity=\"sha384-MCw98\/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO\" crossorigin=\"anonymous\"&gt;\r\n&lt;link href=\"css\/styles.css\" rel=\"stylesheet\"&gt;\r\n&lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Merriweather:400,700\" rel=\"stylesheet\" type=\"text\/css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;nav class=\"navbar navbar-dark bg-dark navbar-static-top navbar-expand-md\"&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;button type=\"button\" class=\"navbar-toggler collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\" aria-expanded=\"false\"&gt; &lt;span class=\"sr-only\"&gt;Toggle navigation&lt;\/span&gt;\r\n&lt;\/button&gt; &lt;a class=\"navbar-brand\" href=\"\/\"&gt;Everything Sharks&lt;\/a&gt;\r\n&lt;div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\"&gt;\r\n&lt;ul class=\"nav navbar-nav mr-auto\"&gt;\r\n&lt;li class=\"nav-item\"&gt;&lt;a href=\"\/\" class=\"nav-link\"&gt;Home&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;li class=\"active nav-item\"&gt;&lt;a href=\"\/sharks\" class=\"nav-link\"&gt;Sharks&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/nav&gt;\r\n&lt;div class=\"jumbotron text-center\"&gt;\r\n&lt;h1&gt;Shark Info&lt;\/h1&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"container\"&gt;\r\n&lt;div class=\"row\"&gt;\r\n&lt;div class=\"col-lg-6\"&gt;\r\n&lt;p&gt;\r\n&lt;div class=\"caption\"&gt;Some sharks are known to be dangerous to humans, though many more are not. The sawshark, for example, is not considered a threat to humans.\r\n&lt;\/div&gt;\r\n&lt;img src=\"https:\/\/assets.digitalocean.com\/articles\/docker_node_image\/sawshark.jpg\" alt=\"Sawshark\"&gt;\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"col-lg-6\"&gt;\r\n&lt;p&gt;\r\n&lt;div class=\"caption\"&gt;Other sharks are known to be friendly and welcoming!&lt;\/div&gt;\r\n&lt;img src=\"https:\/\/assets.digitalocean.com\/articles\/docker_node_image\/sammy.png\" alt=\"Sammy the Shark\"&gt;\r\n&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<\/div>\n<p>\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u0632 \u06a9\u0644\u0627\u0633 \u0641\u0639\u0627\u0644 \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u0635\u0641\u062d\u0647 \u0641\u0639\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0648\u0634\u0647 css \u062f\u0631 \u0641\u0647\u0631\u0633\u062a views\u060c \u0627\u0633\u062a\u0627\u06cc\u0644 \u0634\u06cc\u062a \u0633\u0641\u0627\u0631\u0634\u06cc CSS \u0631\u0627 \u06a9\u0647 \u062f\u0631 index.html \u0648 sharks.html \u0628\u0647 \u0622\u0646 \u067e\u06cc\u0648\u0646\u062f \u062f\u0627\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mkdir views\/css<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u06af\u0647 \u0633\u0628\u06a9 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano views\/css\/styles.css<\/code><\/pre>\n<\/div>\n<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0631\u0646\u06af \u0648 \u0641\u0648\u0646\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0635\u0641\u062d\u0627\u062a \u0645\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.navbar {\r\nmargin-bottom: 0;\r\n}\r\nbody {\r\nbackground: #020A1B;\r\ncolor: #ffffff;\r\nfont-family: 'Merriweather', sans-serif;\r\n}\r\nh1,\r\nh2 {\r\nfont-weight: bold;\r\n}\r\np {\r\nfont-size: 16px;\r\ncolor: #ffffff;\r\n}\r\n.jumbotron {\r\nbackground: #0048CD;\r\ncolor: white;\r\ntext-align: center;\r\n}\r\n.jumbotron p {\r\ncolor: white;\r\nfont-size: 26px;\r\n}\r\n.btn-primary {\r\ncolor: #fff;\r\ntext-color: #000000;\r\nborder-color: white;\r\nmargin-bottom: 5px;\r\n}\r\nimg,\r\nvideo,\r\naudio {\r\nmargin-top: 20px;\r\nmax-width: 80%;\r\n}\r\ndiv.caption: {\r\nfloat: left;\r\nclear: both;\r\n}<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0648\u0646\u062a \u0648 \u0631\u0646\u06af\u060c \u0627\u0646\u062f\u0627\u0632\u0647 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u062d\u062f\u0627\u06a9\u062b\u0631 \u0639\u0631\u0636 80 \u062f\u0631\u0635\u062f \u0646\u06cc\u0632 \u0645\u062d\u062f\u0648\u062f \u0645\u06cc \u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0628\u0627\u0639\u062b \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0641\u0636\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0627\u0632 \u0622\u0646\u0686\u0647 \u0645\u0627 \u062f\u0631 \u0635\u0641\u062d\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u0645 \u0627\u0634\u063a\u0627\u0644 \u0646\u06a9\u0646\u0646\u062f.\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0628\u0627 \u0646\u0635\u0628 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0648 \u0646\u0635\u0628 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647\u060c \u0634\u0645\u0627 \u0622\u0645\u0627\u062f\u0647 \u0634\u0631\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0633\u062a\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0622\u0645\u0648\u0632\u0634 \u0627\u0648\u0644\u06cc\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0633\u0631\u0648\u0631 \u0631\u0627 \u062f\u0631 \u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0641\u0639\u0627\u0644 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u0634\u062a \u06a9\u0647 \u0641\u0642\u0637 \u0628\u0647 \u062a\u0631\u0627\u0641\u06cc\u06a9 SSH \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f. \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0628\u0647 \u067e\u0648\u0631\u062a 8080:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw allow 8080<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647\u060c \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u06cc\u0634\u0647 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd ~\/node_project<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0627 node app.js \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>node app.js<\/code><\/pre>\n<\/div>\n<p>\u0645\u0631\u0648\u0631\u06af\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 http:\/\/your_server_ip:8080 \u0647\u062f\u0627\u06cc\u062a \u06a9\u0646\u06cc\u062f. \u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2874\"  height=\"1474\"  class=\"aligncenter wp-image-14700 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2874px) 100vw, 2874px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page.png 2874w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-300x154.png 300w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-1024x525.png 1024w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-768x394.png 768w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-1536x788.png 1536w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-2048x1050.png 2048w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-110x56.png 110w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-200x103.png 200w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-380x195.png 380w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-255x131.png 255w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-550x282.png 550w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-800x410.png 800w, https:\/\/cdn.itpiran.net\/2024\/02\/07194657\/landing_page-1160x595.png 1160w\" ><br \/>\n\u0628\u0631 \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 Get Shark Info \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f. \u0635\u0641\u062d\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0645\u06cc \u0634\u0648\u062f:<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2153\"  height=\"1083\"  class=\"aligncenter wp-image-14703 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2153px) 100vw, 2153px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2.png 2153w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-300x151.png 300w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-1024x515.png 1024w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-768x386.png 768w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-1536x773.png 1536w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-2048x1030.png 2048w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-110x55.png 110w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-200x101.png 200w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-380x191.png 380w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-255x128.png 255w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-550x277.png 550w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-800x402.png 800w, https:\/\/cdn.itpiran.net\/2024\/02\/07195542\/sharks-info-2-1160x584.png 1160w\" ><br \/>\n\u0634\u0645\u0627 \u0627\u06a9\u0646\u0648\u0646 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062f\u0627\u0631\u06cc\u062f \u0648 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0647\u0633\u062a\u06cc\u062f. \u0648\u0642\u062a\u06cc \u0622\u0645\u0627\u062f\u0647 \u0634\u062f\u06cc\u062f\u060c \u0628\u0627 \u062a\u0627\u06cc\u067e CTRL+C \u0627\u0632 \u0633\u0631\u0648\u0631 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f. \u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0647 \u0627\u06cc\u062c\u0627\u062f Dockerfile \u0628\u0631\u0648\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0627\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0647 \u062f\u0644\u062e\u0648\u0627\u0647 \u0628\u0627\u0632\u0633\u0627\u0632\u06cc \u0648 \u0645\u0642\u06cc\u0627\u0633\u200c\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-3-%d9%86%d9%88%d8%b4%d8%aa%d9%86-dockerfile\">\u0645\u0631\u062d\u0644\u0647 3 &#8211; \u0646\u0648\u0634\u062a\u0646 Dockerfile<\/h2>\n<p>Dockerfile \u0634\u0645\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0686\u0647 \u0686\u06cc\u0632\u06cc \u062f\u0631 \u0645\u062d\u0641\u0638\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u062c\u0631\u0627 \u06af\u0646\u062c\u0627\u0646\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Dockerfile \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0645\u062d\u06cc\u0637 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062e\u0648\u062f \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u0627\u062e\u062a\u0644\u0627\u0641 \u0628\u0627 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627 \u06cc\u0627 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0632\u0645\u0627\u0646 \u0627\u062c\u0631\u0627 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0627 \u067e\u06cc\u0631\u0648\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0633\u0627\u062e\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u0628\u0647\u06cc\u0646\u0647\u060c \u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0628\u0647 \u062d\u062f\u0627\u0642\u0644 \u0631\u0633\u0627\u0646\u062f\u0646 \u062a\u0639\u062f\u0627\u062f \u0644\u0627\u06cc\u0647\u200c\u0647\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0648 \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u062f\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f \u062a\u0635\u0648\u06cc\u0631 \u0628\u0647 \u06cc\u06a9 \u0647\u062f\u0641 \u0648\u0627\u062d\u062f &#8211; \u0628\u0627\u0632\u0622\u0641\u0631\u06cc\u0646\u06cc \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0648 \u0645\u062d\u062a\u0648\u0627\u06cc \u062b\u0627\u0628\u062a\u060c \u062a\u0627 \u062d\u062f \u0627\u0645\u06a9\u0627\u0646 \u06a9\u0627\u0631\u0622\u0645\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u06cc\u0634\u0647 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f\u060c Dockerfile \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano Dockerfile<\/code><\/pre>\n<\/div>\n<p>\u062a\u0635\u0627\u0648\u06cc\u0631 Docker \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0644\u0627\u06cc\u0647\u200c\u0627\u06cc \u0645\u062a\u0648\u0627\u0644\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0633\u0627\u062e\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f. \u0627\u0648\u0644\u06cc\u0646 \u0642\u062f\u0645 \u0645\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0627\u06cc\u0647 \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0627 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u06a9\u0647 \u0646\u0642\u0637\u0647 \u0634\u0631\u0648\u0639 \u0633\u0627\u062e\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062a\u0634\u06a9\u06cc\u0644 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0632 \u062a\u0635\u0648\u06cc\u0631 node:10-alpine \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u060c \u0632\u06cc\u0631\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0646\u0648\u0634\u062a\u0646 \u0627\u06cc\u0646 \u0646\u0633\u062e\u0647 LTS \u062a\u0648\u0635\u06cc\u0647 \u0634\u062f\u0647 Node.js \u0627\u0633\u062a. \u062a\u0635\u0648\u06cc\u0631 \u0622\u0644\u067e\u0627\u06cc\u0646 \u0627\u0632 \u067e\u0631\u0648\u0698\u0647 \u0622\u0644\u067e\u0627\u06cc\u0646 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u06af\u0631\u0641\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u0647 \u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f \u0627\u0646\u062f\u0627\u0632\u0647 \u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u067e\u0627\u06cc\u06cc\u0646 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc\u0645. \u0628\u0631\u0627\u06cc \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u06cc\u0646\u06a9\u0647 \u0622\u06cc\u0627 \u062a\u0635\u0648\u06cc\u0631 \u0622\u0644\u067e\u0627\u06cc\u0646 \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0646\u0627\u0633\u0628\u06cc \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u0627\u0633\u062a \u06cc\u0627 \u062e\u06cc\u0631\u060c \u0644\u0637\u0641\u0627\u064b \u0628\u062d\u062b \u06a9\u0627\u0645\u0644 \u0631\u0627 \u062f\u0631 \u0628\u062e\u0634 Image Variants \u0635\u0641\u062d\u0647 \u062a\u0635\u0648\u06cc\u0631 Docker Hub Node \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 FROM \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0627\u06cc\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>FROM node:10-alpine<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0634\u0627\u0645\u0644 Node.js \u0648 npm \u0627\u0633\u062a. \u0647\u0631 Dockerfile \u0628\u0627\u06cc\u062f \u0628\u0627 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 FROM \u0634\u0631\u0648\u0639 \u0634\u0648\u062f.<\/p>\n<p>\u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u060c \u062a\u0635\u0648\u06cc\u0631 Docker Node \u0634\u0627\u0645\u0644 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0647 \u063a\u06cc\u0631 \u0631\u0648\u062a \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u062a\u0627\u0646 \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0631\u0648\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0627\u062c\u062a\u0646\u0627\u0628 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0631\u0648\u062a \u0648 \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u062f\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u062f\u0631\u0648\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0641\u0642\u0637 \u0628\u0647 \u0645\u0648\u0627\u0631\u062f\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc \u0622\u0646 \u0644\u0627\u0632\u0645 \u0627\u0633\u062a\u060c \u06cc\u06a9 \u0627\u0642\u062f\u0627\u0645 \u0627\u0645\u0646\u06cc\u062a\u06cc \u062a\u0648\u0635\u06cc\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0645\u0627 \u0627\u0632 \u0641\u0647\u0631\u0633\u062a \u0627\u0635\u0644\u06cc \u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u06a9\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u062e\u0648\u062f \u062f\u0631 \u062f\u0627\u062e\u0644 \u0638\u0631\u0641 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u0628\u0647\u062a\u0631\u06cc\u0646 \u0634\u06cc\u0648\u0647 \u0647\u0627 \u0647\u0646\u06af\u0627\u0645 \u06a9\u0627\u0631 \u0628\u0627 \u062a\u0635\u0648\u06cc\u0631 Docker Node\u060c \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0628\u0647\u062a\u0631\u06cc\u0646 \u0634\u06cc\u0648\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u062f\u0642\u06cc\u0642 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0627 \u062f\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0632\u06cc\u0631 \u0634\u0627\u062e\u0647 node_modules \u0631\u0627 \u062f\u0631 \/home\/node \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0641\u0647\u0631\u0633\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u062c\u0627\u062f \u0627\u06cc\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\u200c\u0647\u0627 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0645\u0627 \u0631\u0627 \u062f\u0627\u0631\u0646\u062f\u060c \u06a9\u0647 \u0648\u0642\u062a\u06cc \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u06af\u0631\u0647 \u0645\u062d\u0644\u06cc \u0631\u0627 \u062f\u0631 \u0638\u0631\u0641 \u0628\u0627 \u0646\u0635\u0628 npm \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645\u060c \u0645\u0647\u0645 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u062c\u0627\u062f \u0627\u06cc\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0647\u0627\u060c \u0645\u0627\u0644\u06a9\u06cc\u062a \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0647 \u062e\u0648\u062f \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nRUN mkdir -p \/home\/node\/app\/node_modules &amp;&amp; chown -R node:node \/home\/node\/app<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u06a9\u0627\u0631\u0628\u0631\u062f \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u0647\u0627\u06cc RUN\u060c \u0627\u06cc\u0646 \u0628\u062d\u062b \u0631\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0646\u062d\u0648\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0644\u0627\u06cc\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f.<\/p>\n<p>\u0633\u067e\u0633\u060c \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u06a9\u0627\u0631\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0647 \/home\/node\/app \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nWORKDIR \/home\/node\/app<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 WORKDIR \u062a\u0646\u0638\u06cc\u0645 \u0646\u0634\u062f\u0647 \u0628\u0627\u0634\u062f\u060c Docker \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u06cc\u06a9\u06cc \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0627\u06cc\u062f\u0647 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0631\u0627\u062d\u062a \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc package.json \u0648 package-lock.json (\u0628\u0631\u0627\u06cc npm 5+) \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nCOPY package*.json .\/<\/code><\/pre>\n<\/div>\n<p>\u0627\u0641\u0632\u0648\u062f\u0646 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 COPY \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc npm install \u06cc\u0627 \u06a9\u067e\u06cc \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0627\u0632 \u0645\u06a9\u0627\u0646\u06cc\u0633\u0645 \u06a9\u0634 Docker \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0647\u0631 \u0645\u0631\u062d\u0644\u0647 \u0627\u0632 \u0633\u0627\u062e\u062a\u060c \u062f\u0627\u06a9\u0631 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u0644\u0627\u06cc\u0647 \u0627\u06cc \u0628\u0631\u0627\u06cc \u0622\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u062e\u0627\u0635 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u06cc\u0627 \u062e\u06cc\u0631. \u0627\u06af\u0631 \u0628\u0633\u062a\u0647.json \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u0645\u060c \u0627\u06cc\u0646 \u0644\u0627\u06cc\u0647 \u062f\u0648\u0628\u0627\u0631\u0647 \u0633\u0627\u062e\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0627\u0645\u0627 \u0627\u06af\u0631 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0646\u06a9\u0646\u06cc\u0645\u060c \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u0628\u0647 Docker \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0627\u0632 \u0644\u0627\u06cc\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0648\u062c\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f \u0648 \u0627\u0632 \u0646\u0635\u0628 \u0645\u062c\u062f\u062f \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u06af\u0631\u0647 \u0645\u0627 \u0635\u0631\u0641 \u0646\u0638\u0631 \u06a9\u0646\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0647\u0645\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u062a\u0639\u0644\u0642 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u063a\u06cc\u0631 \u0631\u06cc\u0634\u0647 \u06af\u0631\u0647 \u0647\u0633\u062a\u0646\u062f\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u062d\u062a\u0648\u06cc\u0627\u062a \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc node_modules\u060c \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc npm install\u060c \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0647 node \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nUSER node<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0648 \u062a\u0639\u0648\u06cc\u0636 \u06a9\u0627\u0631\u0628\u0631\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 npm install \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nRUN npm install<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0648\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nCOPY --chown=node:node . .<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u062a\u0639\u0644\u0642 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u063a\u06cc\u0631 \u0631\u0648\u062a \u0627\u0633\u062a.<\/p>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u067e\u0648\u0631\u062a 8080 \u0631\u0627 \u0631\u0648\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f \u0648 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>...\r\nEXPOSE 8080\r\nCMD [ \"node\", \"app.js\" ]<\/code><\/pre>\n<\/div>\n<p>EXPOSE \u067e\u0648\u0631\u062a \u0631\u0627 \u0645\u0646\u062a\u0634\u0631 \u0646\u0645\u06cc \u06a9\u0646\u062f\u060c \u0627\u0645\u0627 \u062f\u0631 \u0639\u0648\u0636 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0631\u0627\u0647\u06cc \u0628\u0631\u0627\u06cc \u0645\u0633\u062a\u0646\u062f \u06a9\u0631\u062f\u0646 \u067e\u0648\u0631\u062a \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u062c\u0631\u0627 \u0639\u0645\u0644 \u0645\u06cc \u06a9\u0646\u062f. CMD \u0641\u0631\u0645\u0627\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f &#8211; \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f\u060c node app.js. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0647\u0631 Dockerfile \u0628\u0627\u06cc\u062f \u0641\u0642\u0637 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 CMD \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f. \u0627\u06af\u0631 \u0628\u06cc\u0634 \u0627\u0632 \u06cc\u06a9 \u0645\u0648\u0631\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\u060c \u0641\u0642\u0637 \u0622\u062e\u0631\u06cc\u0646 \u0645\u0648\u0631\u062f \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>\u06a9\u0627\u0631\u0647\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 Dockerfile \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0641\u0647\u0631\u0633\u062a \u06a9\u0627\u0645\u0644 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627\u060c \u0644\u0637\u0641\u0627\u064b \u0628\u0647 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0645\u0631\u062c\u0639 Docker&#8217;s Dockerfile \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>Dockerfile \u06a9\u0627\u0645\u0644 \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>FROM node:10-alpine\r\nRUN mkdir -p \/home\/node\/app\/node_modules &amp;&amp; chown -R node:node \/home\/node\/app\r\nWORKDIR \/home\/node\/app\r\nCOPY package*.json .\/\r\nUSER node\r\nRUN npm install\r\nCOPY --chown=node:node . .\r\nEXPOSE 8080\r\nCMD [ \"node\", \"app.js\" ]<\/code><\/pre>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0633\u0627\u062e\u062a\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 .dockerignore \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645. \u0628\u0627 \u06a9\u0627\u0631 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0631\u0648\u0634\u06cc \u0645\u0634\u0627\u0628\u0647 \u0628\u0627 \u0641\u0627\u06cc\u0644 .gitignore\u060c .dockerignore \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u06a9\u062f\u0627\u0645 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0647\u0627 \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u0646\u0628\u0627\u06cc\u062f \u062f\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0634\u0645\u0627 \u06a9\u067e\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<p>\u0641\u0627\u06cc\u0644 .dockerignore \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano .dockerignore<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 \u0641\u0627\u06cc\u0644\u060c \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u06af\u0631\u0647 \u0645\u062d\u0644\u06cc\u060c \u06af\u0632\u0627\u0631\u0634\u200c\u0647\u0627\u06cc npm\u060c Dockerfile \u0648 \u0641\u0627\u06cc\u0644 .dockerignore \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>node_modules\r\nnpm-debug.log\r\nDockerfile\r\n.dockerignore\r\n<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u0628\u0627 Git \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc .git \u0648 \u0641\u0627\u06cc\u0644 gitignore. \u062e\u0648\u062f \u0631\u0627 \u0646\u06cc\u0632 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u06a9\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0622\u0645\u0627\u062f\u0647 \u0633\u0627\u062e\u062a \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0633\u0627\u062e\u062a docker \u0647\u0633\u062a\u06cc\u062f. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u0631\u0686\u0645 -t \u0628\u0627 \u0633\u0627\u062e\u062a docker \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u06cc\u06a9 \u0646\u0627\u0645 \u0628\u0647 \u06cc\u0627\u062f \u0645\u0627\u0646\u062f\u0646\u06cc \u062a\u06af \u06a9\u0646\u06cc\u062f. \u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u062f\u0627\u06a9\u0631 \u0647\u0627\u0628 \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u0645\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u062f\u0627\u06a9\u0631 \u0647\u0627\u0628 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u062a\u06af \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u0645. \u0645\u0627 \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0639\u0646\u0648\u0627\u0646 nodejs-image-demo \u0628\u0631\u0686\u0633\u0628 \u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0627\u0645\u0627 \u0628\u0627 \u062e\u06cc\u0627\u0644 \u0631\u0627\u062d\u062a \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645\u06cc \u06a9\u0647 \u062e\u0648\u062f\u062a\u0627\u0646 \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 your_dockerhub_username \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc Docker Hub \u062e\u0648\u062f \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker build -t your_dockerhub_username\/nodejs-image-demo .<\/code><\/pre>\n<\/div>\n<p>. \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0632\u0645\u06cc\u0646\u0647 \u0633\u0627\u062e\u062a \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0641\u0639\u0644\u06cc \u0627\u0633\u062a.<\/p>\n<p>\u0633\u0627\u062e\u062a \u062a\u0635\u0648\u06cc\u0631 \u06cc\u06a9 \u06cc\u0627 \u062f\u0648 \u062f\u0642\u06cc\u0642\u0647 \u0637\u0648\u0644 \u0645\u06cc \u06a9\u0634\u062f. \u067e\u0633 \u0627\u0632 \u062a\u06a9\u0645\u06cc\u0644\u060c \u062a\u0635\u0627\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker images<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nREPOSITORY TAG IMAGE ID CREATED SIZE\r\nyour_dockerhub_username\/nodejs-image-demo latest 1c723fb2ef12 8 seconds ago 73MB\r\nnode 10-alpine f09e7c96b6de 3 weeks ago 70.7MB<\/code><\/pre>\n<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 docker run \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0627 \u0627\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f. \u0645\u0627 \u0633\u0647 \u062f\u0633\u062a\u0648\u0631 \u0631\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<ul>\n<li>-p: \u0627\u06cc\u0646 \u067e\u0648\u0631\u062a \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0645\u0646\u062a\u0634\u0631 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u067e\u0648\u0631\u062a\u06cc \u062f\u0631 \u0647\u0627\u0633\u062a \u0645\u0627 \u0646\u06af\u0627\u0634\u062a \u0645\u06cc \u06a9\u0646\u062f. \u0645\u0627 \u0627\u0632 \u067e\u0648\u0631\u062a 80 \u062f\u0631 \u0647\u0627\u0633\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f\u060c \u0627\u0645\u0627 \u0627\u06af\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f \u062f\u06cc\u06af\u0631\u06cc \u062f\u0631 \u0622\u0646 \u067e\u0648\u0631\u062a \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a\u060c \u0628\u0627\u06cc\u062f \u062f\u0631 \u0635\u0648\u0631\u062a \u0644\u0632\u0648\u0645 \u0622\u0646 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. \u0628\u0631\u0627\u06cc \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u0646\u062d\u0648\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f\u060c \u0627\u06cc\u0646 \u0628\u062d\u062b \u0631\u0627 \u062f\u0631 Docker Docs \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u062a\u0635\u0627\u0644 \u067e\u0648\u0631\u062a \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>-d: \u0627\u06cc\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0631\u0627 \u062f\u0631 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li>&#8211;name: \u0627\u06cc\u0646 \u0628\u0647 \u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u06cc\u06a9 \u0646\u0627\u0645 \u0628\u0647 \u06cc\u0627\u062f \u0645\u0627\u0646\u062f\u0646\u06cc \u0628\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u062f\u0647\u06cc\u0645.<\/li>\n<\/ul>\n<p>\u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker run --name nodejs-image-demo -p 80:8080 -d your_dockerhub_username\/nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0634\u0645\u0627 \u0622\u0645\u0627\u062f\u0647 \u0648 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 docker ps \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker ps<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\r\ne50ad27074a7 your_dockerhub_username\/nodejs-image-demo \"node app.js\" 8 seconds ago Up 7 seconds 0.0.0.0:80-&gt;8080\/tcp nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0634\u0645\u0627 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a\u060c \u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u067e\u06cc\u0645\u0627\u06cc\u0634 \u0645\u0631\u0648\u0631\u06af\u0631 \u062e\u0648\u062f \u0628\u0647 IP \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0628\u062f\u0648\u0646 \u067e\u0648\u0631\u062a\u060c \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\">http:\/\/your_server_ip<\/pre>\n<\/div>\n<p>\u0635\u0641\u062d\u0647 \u0641\u0631\u0648\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u06cc\u06a9 \u0628\u0627\u0631 \u062f\u06cc\u06af\u0631 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2874\"  height=\"1474\"  class=\"aligncenter wp-image-14704 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2874px) 100vw, 2874px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p.png 2874w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-300x154.png 300w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-1024x525.png 1024w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-768x394.png 768w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-1536x788.png 1536w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-2048x1050.png 2048w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-110x56.png 110w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-200x103.png 200w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-380x195.png 380w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-255x131.png 255w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-550x282.png 550w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-800x410.png 800w, https:\/\/cdn.itpiran.net\/2024\/02\/07212847\/3p-1160x595.png 1160w\" ><br \/>\n\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u06cc\u06a9 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u0628\u0647 Docker Hub \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%db%8c%da%a9-%d9%85%d8%ae%d8%b2%d9%86-%d8%a8%d8%b1%d8%a7%db%8c-%da%a9%d8%a7%d8%b1-%d8%a8%d8%a7-%d8%aa\">\u0645\u0631\u062d\u0644\u0647 4 &#8211; \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631 \u0628\u0627 \u062a\u0635\u0627\u0648\u06cc\u0631<\/h2>\n<p>\u0628\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u0628\u0647 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc \u0645\u0627\u0646\u0646\u062f Docker Hub\u060c \u0622\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0628\u0639\u062f\u06cc \u062f\u0631 \u062d\u06cc\u0646 \u0633\u0627\u062e\u062a \u0648 \u0645\u0642\u06cc\u0627\u0633 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u06cc\u062f. \u0645\u0627 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0648 \u0633\u067e\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u062c\u062f\u062f \u0638\u0631\u0641 \u062e\u0648\u062f \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p>\u0627\u0648\u0644\u06cc\u0646 \u0642\u062f\u0645 \u0628\u0631\u0627\u06cc \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631\u060c \u0648\u0631\u0648\u062f \u0628\u0647 \u062d\u0633\u0627\u0628 Docker Hub \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker login -u your_dockerhub_username<\/code><\/pre>\n<\/div>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0627\u0632 \u0634\u0645\u0627 \u062e\u0648\u0627\u0633\u062a\u0647 \u0634\u062f\u060c \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062d\u0633\u0627\u0628 Docker Hub \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0648\u0631\u0648\u062f \u0628\u0647 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 ~\/.docker\/config.json \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0627\u0635\u0644\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0627\u0639\u062a\u0628\u0627\u0631 Docker Hub \u0634\u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0631\u0686\u0633\u0628\u06cc \u06a9\u0647 \u0642\u0628\u0644\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c your_dockerhub_username\/nodejs-image-demo\u060c \u0628\u0647 Docker Hub \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker push your_dockerhub_username\/nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0628\u0632\u0627\u0631 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u0628\u0631\u062f\u0646 \u0638\u0631\u0641 \u0648 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0641\u0639\u0644\u06cc \u062e\u0648\u062f \u0648 \u0628\u0627\u0632\u0633\u0627\u0632\u06cc \u0622\u0646\u0647\u0627 \u0628\u0627 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0645\u062e\u0632\u0646 \u062e\u0648\u062f \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u0627\u0628\u062a\u062f\u0627 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u062e\u0648\u062f \u0631\u0627 \u0641\u0647\u0631\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker ps<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\r\ne50ad27074a7 your_dockerhub_username\/nodejs-image-demo \"node app.js\" 3 minutes ago Up 3 minutes 0.0.0.0:80-&gt;8080\/tcp nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0646\u0627\u0633\u0647 CONTAINER \u0641\u0647\u0631\u0633\u062a \u0634\u062f\u0647 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc\u060c \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0631\u0627 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f. \u062d\u062a\u0645\u0627\u064b \u0634\u0646\u0627\u0633\u0647 \u0647\u0627\u06cc\u0644\u0627\u06cc\u062a \u0634\u062f\u0647 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0634\u0646\u0627\u0633\u0647 CONTAINER \u062e\u0648\u062f\u062a\u0627\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo docker stop e50ad27074a7<\/code><\/pre>\n<\/div>\n<p>\u062a\u0645\u0627\u0645 \u062a\u0635\u0627\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 -a \u0641\u0647\u0631\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker images -a<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f\u060c your_dockerhub_username\/nodejs-image-demo\u060c \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u062a\u0635\u0648\u06cc\u0631 \u06af\u0631\u0647 \u0648 \u0633\u0627\u06cc\u0631 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0627\u0632 \u0633\u0627\u062e\u062a \u062e\u0648\u062f \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nREPOSITORY TAG IMAGE ID CREATED SIZE\r\nyour_dockerhub_username\/nodejs-image-demo latest 1c723fb2ef12 7 minutes ago 73MB\r\n&lt;none&gt; &lt;none&gt; 2e3267d9ac02 4 minutes ago 72.9MB\r\n&lt;none&gt; &lt;none&gt; 8352b41730b9 4 minutes ago 73MB\r\n&lt;none&gt; &lt;none&gt; 5d58b92823cb 4 minutes ago 73MB\r\n&lt;none&gt; &lt;none&gt; 3f1e35d7062a 4 minutes ago 73MB\r\n&lt;none&gt; &lt;none&gt; 02176311e4d0 4 minutes ago 73MB\r\n&lt;none&gt; &lt;none&gt; 8e84b33edcda 4 minutes ago 70.7MB\r\n&lt;none&gt; &lt;none&gt; 6a5ed70f86f2 4 minutes ago 70.7MB\r\n&lt;none&gt; &lt;none&gt; 776b2637d3c1 4 minutes ago 70.7MB\r\nnode 10-alpine f09e7c96b6de 3 weeks ago 70.7MB<\/code><\/pre>\n<\/div>\n<p>\u0638\u0631\u0641 \u0645\u062a\u0648\u0642\u0641 \u0634\u062f\u0647 \u0648 \u062a\u0645\u0627\u0645 \u062a\u0635\u0627\u0648\u06cc\u0631\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0634\u062f\u0647 \u06cc\u0627 \u0622\u0648\u06cc\u0632\u0627\u0646 \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker system prune -a<\/code><\/pre>\n<\/div>\n<p>\u0648\u0642\u062a\u06cc \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u0627\u0632 \u0634\u0645\u0627 \u062e\u0648\u0627\u0633\u062a\u0647 \u0634\u062f \u062a\u0627 \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0638\u0631\u0641 \u0648 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0645\u062a\u0648\u0642\u0641 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u062f\u0627\u0631\u06cc\u062f\u060c Y \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0627\u0639\u062b \u062d\u0630\u0641 \u06a9\u0634 \u0633\u0627\u062e\u062a \u0634\u0645\u0627 \u0646\u06cc\u0632 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0647\u0645 \u0638\u0631\u0641\u06cc \u06a9\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0647\u0645 \u062e\u0648\u062f \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u062d\u0630\u0641 \u0638\u0631\u0648\u0641\u060c \u062a\u0635\u0627\u0648\u06cc\u0631 \u0648 \u062d\u062c\u0645\u200c\u0647\u0627\u06cc Docker\u060c \u0644\u0637\u0641\u0627\u064b \u0646\u062d\u0648\u0647 \u062d\u0630\u0641 \u062a\u0635\u0627\u0648\u06cc\u0631\u060c \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0648 \u062d\u062c\u0645\u200c\u0647\u0627\u06cc Docker \u0631\u0627 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0627 \u062d\u0630\u0641 \u062a\u0645\u0627\u0645 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0648 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u062e\u0648\u062f\u060c \u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0627\u0632 \u062f\u0627\u06a9\u0631 \u0647\u0627\u0628 \u0628\u06a9\u0634\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker pull your_dockerhub_username\/nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u06cc\u06a9 \u0628\u0627\u0631 \u062f\u06cc\u06af\u0631 \u062a\u0635\u0627\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0641\u0647\u0631\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker images<\/code><\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0634\u0645\u0627 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0631\u0627 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nREPOSITORY TAG IMAGE ID CREATED SIZE\r\nyour_dockerhub_username\/nodejs-image-demo latest 1c723fb2ef12 11 minutes ago 73MB<\/code><\/pre>\n<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06a9\u0627\u0646\u062a\u0627\u06cc\u0646\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0645\u0631\u062d\u0644\u0647 3 \u0628\u0627\u0632\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker run --name nodejs-image-demo -p 80:8080 -d your_dockerhub_username\/nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u062e\u0648\u062f \u0631\u0627 \u0641\u0647\u0631\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\">docker ps<\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\r\nf6bc2f50dff6 your_dockerhub_username\/nodejs-image-demo \"node app.js\" 4 seconds ago Up 3 seconds 0.0.0.0:80-&gt;8080\/tcp nodejs-image-demo<\/code><\/pre>\n<\/div>\n<p>\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u062e\u0648\u062f \u06cc\u06a9 \u0628\u0627\u0631 \u062f\u06cc\u06af\u0631 \u0628\u0647 http:\/\/your_server_ip \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">\u0646\u062a\u06cc\u062c\u0647<\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0634\u0645\u0627 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628 \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0628\u0627 Express \u0648 Bootstrap \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u06cc\u06a9 \u062a\u0635\u0648\u06cc\u0631 Docker \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u06cc\u062f. \u0634\u0645\u0627 \u0627\u0632 \u0627\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0638\u0631\u0641 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u062f \u0648 \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0647 Docker Hub \u0645\u0646\u062a\u0642\u0644 \u06a9\u0631\u062f\u06cc\u062f. \u0627\u0632 \u0622\u0646\u062c\u0627 \u062a\u0648\u0627\u0646\u0633\u062a\u06cc\u062f \u062a\u0635\u0648\u06cc\u0631 \u0648 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u0628\u0628\u0631\u06cc\u062f \u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062e\u0632\u0646 Docker Hub \u062e\u0648\u062f \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0627\u0632\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"Introduction The Docker platform allows developers to package applications as containers\u2026","protected":false},"author":1,"featured_media":14706,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363,350],"tags":[346,366],"class_list":{"0":"post-14697","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"category-docker","10":"tag-docker","11":"tag-366"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran<\/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.itpiran.net\/blog\/en\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u067e\u0644\u062a\u0641\u0631\u0645 Docker \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-07T21:27:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645\",\"datePublished\":\"2024-02-07T21:27:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/\"},\"wordCount\":242,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/08005524\\\/program-Docker.jpg\",\"keywords\":[\"Docker\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\",\"\u062f\u0627\u06a9\u0631\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/\",\"name\":\"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/08005524\\\/program-Docker.jpg\",\"datePublished\":\"2024-02-07T21:27:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/08005524\\\/program-Docker.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/08005524\\\/program-Docker.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to build a Node.js application with Docker - ITPiran Blog","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.itpiran.net\/blog\/en\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/","og_locale":"en_US","og_type":"article","og_title":"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u067e\u0644\u062a\u0641\u0631\u0645 Docker \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-02-07T21:27:50+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645","datePublished":"2024-02-07T21:27:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/"},"wordCount":242,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg","keywords":["Docker","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc","\u062f\u0627\u06a9\u0631"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/","name":"How to build a Node.js application with Docker - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg","datePublished":"2024-02-07T21:27:50+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/08005524\/program-Docker.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-build-a-node-js-application-with-dockerstep-2-creating-the-application-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 Docker \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Node.js \u0628\u0633\u0627\u0632\u06cc\u0645"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=14697"}],"version-history":[{"count":3,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14697\/revisions"}],"predecessor-version":[{"id":14705,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14697\/revisions\/14705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/14706"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=14697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=14697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=14697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}