nodejs/test/examples/from-dockerfile
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
..
.gitignore Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails 2022-06-10 08:44:57 +00:00
Dockerfile Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails 2022-06-10 08:44:57 +00:00
Dockerfile.s2i Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails 2022-06-10 08:44:57 +00:00
README.md Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails 2022-06-10 08:44:57 +00:00

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