Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make build docker task more productive

I'm beginner with docker and I created a image with my application (with connections with oracle + db2 + gateways, in nodejs).

But I'm coding and for build it's take a longtime. Before I was using just node in my local machine, and I was running my project with nodemon. It was being very productive!

I need something like that, for to transform my build task faster.

like image 891
Ricardo Corassa Avatar asked Sep 12 '26 15:09

Ricardo Corassa


1 Answers

No need to rebuild your docker image every time, use volumes instead.

For example run:

docker run -v /path/to/the/code/on/host:/path/to/the/code/on/container your image nodemon your_file.js
like image 106
D. Gonçalves Avatar answered Sep 15 '26 05:09

D. Gonçalves



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!