2019-03-01 21:52:01 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var { exec } = require('./utils/exec');
|
2019-03-03 22:51:52 +00:00
|
|
|
var { IMAGE_NAME, DOCKERHUB_IMAGE_NAME } = require('./utils/docker');
|
2019-03-01 21:52:01 +00:00
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
async function main() {
|
|
|
|
await exec(`docker build -t ${IMAGE_NAME}:dist .`);
|
|
|
|
await exec(`docker tag ${IMAGE_NAME}:dist ${DOCKERHUB_IMAGE_NAME}`);
|
|
|
|
}
|
|
|
|
|
|
|
|
main().catch((err) => {
|
|
|
|
console.error(err);
|
|
|
|
process.exit(1);
|
|
|
|
})
|