Code Monkey home page Code Monkey logo

docker-local-npm's Introduction

๐Ÿณ local-npm

Dockerfile to build a local-npm container image.

Requirements

Obviously you will need Docker to run, build and update the local-npm container. Thats all.

How to use the local-npm docker

Using the local-npm docker is quite easy. Simply run one of the automated builds which are available on Dockerhub and configure npm to use your new local registry.

Use the following command to pull the latest image and run it (recommended method of installation):

$ docker run -d -v "$PWD/data":/data -p 5080:5080 orlandohohmeier/local-npm:latest

This command will start the local-npm container, mount a data volume (working-directory/data) as /data and map the container port (5080- default local-npm port) to the host port (5080)

Then configure npm to use your shine new local npm registry with the following command:

$ npm set registry http://0.0.0.0:5080

Use the following command to switch back to the old default registry:

$ npm set registry https://registry.npmjs.org

For a full list of docker commands and npm configuration and options please see:

https://docs.docker.com/engine/reference/commandline/cli/ https://docs.npmjs.com/cli/npm

License

Apache 2.0

docker-local-npm's People

Contributors

greenkeeper[bot] avatar orlandohohmeier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.