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):
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:
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):