diff --git a/gulpfile.js b/gulpfile.js index b20edf465..413d86f6e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -423,10 +423,10 @@ gulp.task('docker', async () => { }); /** - * Rebuilds the docker image, if these already exist, destroys and - * rebuilds them. + * Rebuilds the docker image, if already exists, destroys and + * rebuild it. */ -gulp.task('docker-image', async () => { +gulp.task('docker-build', async () => { try { await execP('docker rm -f dblocal'); } catch (e) {} @@ -436,11 +436,6 @@ gulp.task('docker-image', async () => { log('Building image...'); await execP('docker build -t dblocal:latest ./services/db'); - log('Starting container...'); - await execP('docker run -d --name dblocal -p 3306:3306 dblocal'); - await runSequenceP('docker-wait'); - log('Making container snapshot...'); - await execP('docker commit dblocal dblocal:latest'); }); /**