filmov
tv
JS Unit Testing | Part 11 | Running NPM Commands Inside Docker

Показать описание
At we are ready to build our docker container and play with it. The first step is to build our Dockerfile and give tag that we'll use later. If we run this build multiple times with the same tag Docker will only keep the latest version for us.
$ docker build -t ava .
Once we've built the container we can execute a command inside of it. For our first test we are going to get the version of npm we have installed inside the container.
$ docker run ava npm --version
$ docker build -t ava .
Once we've built the container we can execute a command inside of it. For our first test we are going to get the version of npm we have installed inside the container.
$ docker run ava npm --version