Pull a PodArmor NodeJS Image
Pull the PodArmor NodeJS image using the following command, with the version you want to use:Create a NodeJS container
1
Create a NodeJS application container
Create a new directory
mkdir node-quickstart && cd node-quickstart and create a index.js file with the following content:2
Create a Dockerfile
Create a
Dockerfile with the following content:3
Build the Docker image
Build the Docker image using the following command:
4
Run the Docker container
Run the Docker container using the following command:
Create a minimal NodeJS deployment container
1
Create a package.json file with a random dependency
Create a new directory
mkdir node-minimal && cd node-minimal and create a package.json file with the following content:2
Create a minimal-index.js file
Create a
minimal-index.js file with the following content:3
Create a Dockerfile.minimal
Create a
Dockerfile.minimal with the following content:4
Build the Docker image
Build the Docker image using the following command:
5
Run the Docker container
Run the Docker container using the following command: