14. create image

02

This is the example node.js project they use, but YOU HAVE TO install express before trying

npm install express

Use

npm audit fix

if you have a problem with vulnerbilities

node src/server.js

02

Create an images by creating a file in your directory called Dockerfile

this is a lightweight linux operating system that has node, npm, installed on your app

define the image with FROM

Get the base image from docker hub, https://hub.docker.com/_/node

FROM node:19-alpine

** 19-alpine is old but i'm gonna use it

03

Use the RUN command to install express since we are using it,

This is what allows us to install any dependendicies and anything after RUN will run in the command line

FROM node:19-alpine                                
RUN npm install express