Update sample app deps to latest versions and node to latest LTS

Signed-off-by: Michael Irwin <mikesir87@gmail.com>
This commit is contained in:
Michael Irwin 2022-11-22 22:09:01 -05:00
parent b4f92f7c6b
commit fec54de67b
No known key found for this signature in database
GPG Key ID: 8C42FBB0E482C8CF
3 changed files with 1611 additions and 2400 deletions

View File

@ -9,11 +9,11 @@
"dev": "nodemon src/index.js"
},
"dependencies": {
"express": "^4.17.1",
"mysql": "^2.17.1",
"sqlite3": "^5.0.0",
"uuid": "^3.3.3",
"wait-port": "^0.2.2"
"express": "^4.18.2",
"mysql": "^2.18.1",
"sqlite3": "^5.1.2",
"uuid": "^9.0.0",
"wait-port": "^1.0.4"
},
"resolutions": {
"ansi-regex": "5.0.1"
@ -26,8 +26,8 @@
"singleQuote": true
},
"devDependencies": {
"jest": "^27.2.5",
"nodemon": "^2.0.13",
"prettier": "^1.18.2"
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"prettier": "^2.7.1"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
1. Create a file named `Dockerfile` in the same folder as the file `package.json` with the following contents.
```dockerfile
FROM node:12-alpine
FROM node:18-alpine
# Adding build tools to make yarn install work on Apple silicon / arm64 machines
RUN apk add --no-cache python2 g++ make
WORKDIR /app
@ -56,7 +56,7 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
This command used the Dockerfile to build a new container image. You might
have noticed that a lot of "layers" were downloaded. This is because we instructed
the builder that we wanted to start from the `node:12-alpine` image. But, since we
the builder that we wanted to start from the `node:18-alpine` image. But, since we
didn't have that on our machine, that image needed to be downloaded.
After the image was downloaded, we copied in our application and used `yarn` to