add preview use docker (#2890)
Showing
Dockerfile.hub
0 → 100644
... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
"start": "cross-env APP_TYPE=site umi dev", | "start": "cross-env APP_TYPE=site umi dev", | ||
"start:no-mock": "cross-env MOCK=none umi dev", | "start:no-mock": "cross-env MOCK=none umi dev", | ||
"build": "umi build", | "build": "umi build", | ||
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy", | "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push", | ||
"analyze": "cross-env ANALYZE=1 umi build", | "analyze": "cross-env ANALYZE=1 umi build", | ||
"lint:style": "stylelint \"src/**/*.less\" --syntax less", | "lint:style": "stylelint \"src/**/*.less\" --syntax less", | ||
"lint": "eslint --ext .js src mock tests && npm run lint:style", | "lint": "eslint --ext .js src mock tests && npm run lint:style", | ||
... | @@ -24,7 +24,10 @@ | ... | @@ -24,7 +24,10 @@ |
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | ||
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | ||
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | ||
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build" | "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | ||
"docker-hub:build":"docker build -f Dockerfile.hub -t ant-design-pro ./", | |||
"docker:tag":"docker tag ant-design-pro chenshuai2144/ant-design-pro", | |||
"docker:push":"npm run docker-hub:build && npm run docker:tag && docker push chenshuai2144/ant-design-pro" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"@babel/runtime": "^7.1.5", | "@babel/runtime": "^7.1.5", | ||
... | ... |
Please register or sign in to comment