Environment of nuxt.js project
1M+
[+] AUTOR: Gerardo Junior
[+] SITE: https://gerardo-junior.com
[+] EMAIL: [email protected]
[+] GITHUB: https://github.com/gerardo-junior/nuxtjs-docker.git
[+] TELEGRAM: @MrGerardoJunior
Docker image to run nuxt.js projects
The project must be in the /src container folder
docker pull gerardojunior/nuxtjs: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_ENV=1.0.0
docker build https://github.com/gerardo-junior/nuxtjs-docker.git --tag gerardojunior/nuxtjs
# in your project folder
docker run -it --rm -v $(pwd):/src -p 3000:3000 gerardojunior/nuxtjs:stable [command]
# or docker-compose
docker-compose run nuxt [command]
Create the docker-compose.yml file in your project folder with:
# (...)
nuxt:
image: gerardojunior/nuxtjs:stable
restart: on-failure
volumes:
- type: bind
source: ./
target: /src
ports:
- 3000:3000
#command: dev
# (...)
docker run -it --rm gerardojunior/nuxtjs sh
# or with docker-compose
docker-compose run nuxt sh
This project is licensed under the MIT License - see the LICENSE file for details
Content type
Image
Digest
Size
23 MB
Last updated
over 7 years ago
docker pull gerardojunior/nuxtjs