Skip to content

Stage and run your Cloud Foundry apps in Docker with this Dockerfile

Notifications You must be signed in to change notification settings

peterellisjones/cf2docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

CF2DOCKER

cf2docker stages and runs Cloud Foundry apps in Docker. It uses a multi-stage Dockerfile to build a minimal final image based on cflinuxfs2 that just contains your app and the CF launcher.

It currently stages apps using the latest go, nodejs and ruby buildpacks.

# Clone this repo
git clone https://github.com/peterellisjones/cf2docker
cd cf2docker

# Clone an example app
git clone https://github.com/cloudfoundry-samples/cf-sample-app-nodejs.git

# Stage your app by building this Dockerfile
docker build --build-arg APP_PATH=cf-sample-app-nodejs --tag my-cf-app .

# Run your CF app in docker!
docker run -d -p 8080:8080 my-cf-app:latest
curl localhost:8080

Check out the Dockerfile to see how it works

About

Stage and run your Cloud Foundry apps in Docker with this Dockerfile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published