Before we deploy, we need to create an image for our service to run inside. Our service has no dependencies other than the ones defined on the top:
- express and body-parser: To handle our HTTP requests
- mysql: It enables us to use a MySQL database
- sharp: It enables us to manipulate images
- path: It is a core module to help working with directory paths
To keep our image as slim as possible, we'll be using the Node.js Alpine version, which is a Node.js image based on Alpine Linux and it has a much smaller size than other ...