rodriggj / docker-kubernetes-sg

This is the docker / kubernetes mastery by Stephen Grinder on Udemy.
0 stars 0 forks source link

4.40 Required Node Base Image version #4

Open rodriggj opened 1 year ago

rodriggj commented 1 year ago

Required Node Base Image Version In the upcoming lecture, we will be adding a Node base image to our Dockerfile. To properly follow along with the lectures, please add this specific version:

Change this:

FROM node:alpine

to this:

FROM node:14-alpine

If you do not specify a Node version If you do not specify a version, you will meet a number of errors caused by changes in the newest versions of Node:

npm ERR! idealTree already exists

This can be resolved by adding a WORKDIR right after the FROM instruction: (we will be adding this in the Specifying a Working Directory lecture anyway):

FROM node:alpine

WORKDIR /usr/app
rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image

rodriggj commented 1 year ago

Image