Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client building environment of Cyber Cangaço

Docker Automated build

Docker image to run nuxt.js projects

The project must be in the /usr/local/src container folder and will be available on port :3000 of the container

Tags available

Come on, do your tests

docker pull cybercangaco/client.environment: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

git clone https://github.com/cybercangaco/client.environment.git
cd tap.client.environment
docker build . --tag cybercangaco/client.environment

How to use

Only with docker command:
# in your project folder
docker run -it --rm -v $(pwd):/usr/share/src -p 3000:3000 cybercangaco/client.environment:stable [command or npm script]

# or docker-compose
docker-compose run nuxt [command or npm script]

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

# (...)

  nuxt:
    image: cybercangaco/client.environment:stable
    restart: on-failure
    volumes:
      - type: bind
        source: ./
        target: /usr/share/src
    ports:
      - 3000:3000
      # - 9229:9229 # node debug port
    #command: dev

# (...)

How to enter image shell

docker run -it --rm cybercangaco/client.environment sh
# or with docker-compose
docker-compose run nuxt sh

License

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

About

Client building environment of Cyber Cangaço

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages