Sign inSign up

gerardojunior/nodejs

By gerardojunior

•Updated over 6 years ago

Nodejs project environment

Image
0

687

gerardojunior/nodejs repository overview

⁠Environment of nodejs project

    [+] AUTOR:        Gerardo Junior
    [+] SITE:         https://gerardo-junior.com
    [+] EMAIL:        [email protected]
    [+] GITHUB:       https://github.com/gerardo-junior/nodejs-docker.git
    [+] TELEGRAM:     @MrGerardoJunior

Docker Automated build

Docker image to run node⁠ projects

The project must be in the /src container folder

⁠Tags available

⁠Come on, do your tests

docker pull gerardojunior/nodejs:stable

⁠How to build

to build the image you need install the docker engine⁠ only

You can try building with different versions of software with docker args, for example: NODE_VERISON=10.0.0

docker build https://github.com/gerardo-junior/nodejs-docker.git --tag gerardojunior/nodejs

⁠How to use

⁠With docker⁠ command:
docker run -it --rm gerardojunior/nodejs:stable [sh command or npm script]
⁠With docker-compose⁠ command:

Create the docker-compose.yml⁠ file in your project folder with:

# (...)

  nodejs:
    image: gerardojunior/nodejs:stable
    restart: on-failure

# (...)

run this command with this syntax

docker-compose run node [sh command or npm script]

⁠How to enter image shell

docker run -it --rm gerardojunior/nodejs sh
# or with docker-compose
docker-compose run node sh
⁠License

This project is licensed under the MIT License - see the LICENSE⁠ file for details

Tag summary

Content type

Image

Digest

Size

21.8 MB

Last updated

over 6 years ago

docker pull gerardojunior/nodejs