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
docker pull cybercangaco/client.environment:stable
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
# 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]
With docker-compose
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
# (...)
docker run -it --rm cybercangaco/client.environment sh
# or with docker-compose
docker-compose run nuxt sh
This project is licensed under the MIT License - see the LICENSE file for details