nodejs/test/examples/from-dockerfile/README.md
phracek 5bfde53a71 Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails
Exit oc tests gracefully if login fails
2022-06-10 08:44:57 +00:00

579 B

Dockerfile examples

This directory contains example Dockerfiles that demonstrate how to use the image with a Dockerfile and docker build.

For demonstration, we use an application code available at https://github.com/sclorg/nodejs-ex.git.

Pull the source to the local machine first:

git clone https://github.com/sclorg/nodejs-ex.git app-src

Then, build a new image from a Dockerfile in this directory:

docker build -f Dockerfile -t node-app .

And run the resulting image with the final application:

docker run -ti --rm node-app