111d2df90c
* Fix missing yarn.lock * Add --frozen-lockfile flag to speed up install deps * Make sure node_modules do not contains devDependencies * Add --targe stage docker build
18 lines
481 B
JSON
18 lines
481 B
JSON
{
|
|
"name": "with-docker",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"build-docker": "docker build -t next-app .",
|
|
"build-docker-multistage": "docker build --target production -t next-app -f ./Dockerfile.multistage .",
|
|
"run-docker": "docker run --rm -it -p 3000:3000 next-app"
|
|
},
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^16.7.0",
|
|
"react-dom": "^16.7.0"
|
|
},
|
|
"license": "MIT"
|
|
}
|