codefreshdemo / cf-example-dockerfile-other-location

Example of Codefresh pipeline that builds docker image

Home Page:https://codefresh.io/docs/docs/yaml-examples/examples/build-an-image-specify-dockerfile-location/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of building a docker image where the Dockerfile is not in the same folder as docker context

This is a Git repository that holds a Node application and a Dockerfile. The dockerfile is placed in a subfolder of the project instead of being at the root folder

Packaging the Node.js app

To compile and package using Docker

docker build . -t my-app -f docker/Dockerfile

Running the docker image

docker run -p 3000:3000 my-app

and then visit http://localhost:3000 in your browser

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform.

More details can be found in Codefresh documentation.

About

Example of Codefresh pipeline that builds docker image

https://codefresh.io/docs/docs/yaml-examples/examples/build-an-image-specify-dockerfile-location/


Languages

Language:JavaScript 55.8%Language:Dockerfile 44.2%