
I talk about my experience with Freelancing, React & Node, and many others β’ Quality, Scaling, Delivery β’ Digital Nomad β’ Technical Writer β’ Teacher
Joined November 2020
- Tweets186
- Following296
- Followers230
- Likes653
I'm supposed to learn about impact maps, but the example for "Make website faster" being "Stop using angular.js" made me chuckle.
Can't say how much value you can find in this book: Patterns, Principles, and Practices of Domain-Driven Design.
#SoftwareDevelopment #developers
150
Did you read about the outage at Resend that kept their clients from sending emails for several hours?
Well it seems like someone had access to the production database locally⦠And ran a migration that deleted their database!
#backend #developer
1
59
9οΈβ£ Entrypoint & Ports
I'm not declaring which ports to expose or how to start my application in the Dockerfile. Why not?
That's for another thread π
#docker #nodejs #DevOpsDays #javascript #100daysofcoding
49
8οΈβ£ Installing packages
I recommend installing packages with the --no-cache flag to avoid generating cache that will not be used, but will take up space on the image.
1
26
7οΈβ£ Updating packages
The first step is to update the package list from the remote repo (with APK for alpine).
his avoids installing packages that are out of date and pose performance/security problems.
1
12
6οΈβ£ Work Directory configuration
If we want to use a specific Work Directory, with a user who has restricted privilege, we need to create the folder in question and give access rights to our user.
1
2
5οΈβ£ Caching
A common mistake is to copy the list of dependencies at the same time as the source code.
We prefer to first copy the files that define the dependencies, then install them, and finally copy the source code.
Otherwise, dependencies are reinstalled on every rebuild.
1
8
4οΈβ£ Work Directory
This is the folder that will be used by default. It's good practice to define a separate folder, often /usr/src/app.
1
2
3οΈβ£ Privilege
As the default user is root, he has access to everything. It's better to define a user with a lower privilege level.
With the node image (and all its variations), a "node" user is provided by default.
1
5
2β£ Parent Image
Avoid using the latest version of an image, to keep control over which image you're using at any given time.
We prefer a fixed version, using a LTS version (nodejs.org/) built on top of a lightweight distribution like Alpine.
1
8










