I love TypeScript, and I love Docker. Putting these two together, however, can be a giant pain in the ass.
Today I am going to walk you through ...
For further actions, you may consider blocking this person and/or reporting abuse
In order to make the production container, I had to add
--build
to the docker up command, so theup-prod
Makefile entry became:docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d
Great article! We would need to restart the container on installing a new module right?
Thanks Ryan! Yes you would. Most of it gets cached so rebuilding after installing another package should be much faster than the initial build.
💯
Great article, thanks
Thank you! I was wasting so much time flipping between developing with npm scripts and then testing with docker...hot reloading for the win!
This was very well done. Thanks!
Nice
Doesn't this make a production image containing all the devDependencies? That's not what we want
Saved me from a massive headache. Thanks a lot!
Excellent article!!
Thank you
So you put all of the dev dependencies, TS sources to the docker image? Aren't you supposed to specifically not do that?
Nice work Darian, I've been struggle with this setup for so long.
Will use this as template from now on!
Well you just saved me hours of work, Thank you