Nuxt/examples/docker-build
2019-04-01 02:36:28 +04:30
..
assets examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
components examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
layouts examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
middleware examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
pages examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
plugins examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
static examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
store examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
.dockerignore examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
.yarnclean examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
dockerfile examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
nuxt.config.js examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
package.json examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30
README.md examples: add docker example (#5430) 2019-04-01 02:36:28 +04:30

docker-build

Build Setup

# Build a nuxt-docker image
$ docker build -t nuxt-docker .

# Run the container for the nuxt-docker image with a exposed port 3000
$ docker run --rm -it -p 3000:3000 nuxt-docker