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:
parent
b4f92f7c6b
commit
fec54de67b
@ -9,11 +9,11 @@
|
|||||||
"dev": "nodemon src/index.js"
|
"dev": "nodemon src/index.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.17.1",
|
"express": "^4.18.2",
|
||||||
"mysql": "^2.17.1",
|
"mysql": "^2.18.1",
|
||||||
"sqlite3": "^5.0.0",
|
"sqlite3": "^5.1.2",
|
||||||
"uuid": "^3.3.3",
|
"uuid": "^9.0.0",
|
||||||
"wait-port": "^0.2.2"
|
"wait-port": "^1.0.4"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"ansi-regex": "5.0.1"
|
"ansi-regex": "5.0.1"
|
||||||
@ -26,8 +26,8 @@
|
|||||||
"singleQuote": true
|
"singleQuote": true
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jest": "^27.2.5",
|
"jest": "^29.3.1",
|
||||||
"nodemon": "^2.0.13",
|
"nodemon": "^2.0.20",
|
||||||
"prettier": "^1.18.2"
|
"prettier": "^2.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3991
app/yarn.lock
3991
app/yarn.lock
File diff suppressed because it is too large
Load Diff
@ -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.
|
1. Create a file named `Dockerfile` in the same folder as the file `package.json` with the following contents.
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM node:12-alpine
|
FROM node:18-alpine
|
||||||
# Adding build tools to make yarn install work on Apple silicon / arm64 machines
|
# Adding build tools to make yarn install work on Apple silicon / arm64 machines
|
||||||
RUN apk add --no-cache python2 g++ make
|
RUN apk add --no-cache python2 g++ make
|
||||||
WORKDIR /app
|
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
|
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
|
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.
|
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
|
After the image was downloaded, we copied in our application and used `yarn` to
|
||||||
|
Loading…
Reference in New Issue
Block a user