【文件属性】:
文件名称:hello-world-js:使用Express和Docker的Hello World
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-25 22:35:57
JavaScript
Node.js-Docker的Hello World示例
只是显示“ Hello World!”的一个简单示例。 与Express和Docker一起使用。
在没有Docker的情况下运行:
$ git clone git@github.com:stefan-o/hello-world-js.git hello-world-js
$ cd hello-world-js
$ npm install
$ npm start
$ curl http://localhost:3000
# It will return:
Hello World!
使用Docker运行:
$ git clone git@github.com:stefan-o/hello-world-js.git hello-world-js
$ cd hello-world-js
$ docker build -t hell
【文件预览】:
hello-world-js-master
----Dockerfile(22B)
----.gitignore(12B)
----README.md(741B)
----.dockerignore(28B)
----package.json(679B)
----index.js(156B)