Building a docker image with nodejs, bower, karma-cli, chrome

We need to have a docker image with nodejs, bower, karma-cli, chrome. It will be used in Bitbucket Pipeline for building a SPA using angularjs.

Github link.

Once you pull down the source, you can play with it.

  • To build the container image,
    docker build -t nodejschrome:dockerfile .
    
  • To tag

    docker tag [id] [your_docker_account]/nodejschrome
    
  •  To push

    docker push [your_docker_account]/nodejschrome:tag;
    
  • To run bash in the container
    docker run -i -t [id]
    

If you need to use it in Bitbucket Pipeline, just specify the image you will use in your bitbucket-pipelines.yml file

image: samsiumelbourne/nodejschrome

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s