One, use docker-compose.yml
and Dockerfile
build the project
-
1. Basic introduction of the project
Use the
express
framework's routing to accessviews
static files in the directory -
2. The basic structure of the project
. ├── Dockerfile ├── README.md ├── docker-compose.yml ├── index.js ├── package-lock.json ├── package.json └── views ├── index.html └── other.html
-
3.
index.js
File codeconst express = require('express') const app = express(