Skip to content

cybercangaco/client.environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published