Sign inSign up

gerardojunior/nuxtjs

By gerardojunior

•Updated over 7 years ago

Environment of nuxt.js project

Image
9

1M+

gerardojunior/nuxtjs repository overview

⁠Environment of nuxt.js project

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

Docker Automated build

Docker image to run nuxt.js⁠ projects

The project must be in the /src container folder

⁠Tags available

⁠Come on, do your tests

docker pull gerardojunior/nuxtjs: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_ENV=1.0.0

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

⁠How to use

⁠Only with docker command:
# 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]
⁠With docker-compose⁠

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

# (...)

⁠How to enter image shell

docker run -it --rm gerardojunior/nuxtjs 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

Tag summary

Content type

Image

Digest

Size

23 MB

Last updated

over 7 years ago

docker pull gerardojunior/nuxtjs