JS Unit Testing | Part 8 | Dockerfile and our Base Image

Опубликовано: 13 Октябрь 2024
на канале: Baylor Breaks It Down
135
0

We are going to create a new file in our project root named Dockerfile. This file will tell docker the base image we are going to use, the files to copy in and which command to run inside the container.

For our image we are going to use node:9.4.0-alpine. This is the Alpine Linux distro which weighs in at only 5mb and it will have
node 9.4.0 preinstalled.

use the node image with alpine linux
FROM node:9.4.0-alpine