Add a #golang into a #docker container! #shorts

preview_player
Показать описание
Learn how to add a #golang into a #docker container in this short video!

In this video, we'll show you how to add a Go language to a Docker container. By the end of this short video, you'll be able to add Go to any Docker container with ease!

🔴 Subscribe today!

👋 Connect w/me:

__________________________________________

🖥 My Rig

__________________________________________

🎥 Streaming Gear
__________________________________________

⏯ My Coding Series'

__________________________________________

📚 Other Excellent Learning Resources

Please note that links in this description may or may not be affiliate links, where I make a small commission if used.

Thanks For Watching!
Рекомендации по теме
Комментарии
Автор

You could combine those two COPY instructions by wrapping up the files you wanna copy in brackets, along with your destination ("./") last.

This also has the added benefit of reducing the size of your container since each COPY instruction adds on another caching layer.

bigk
Автор

So why copying the main.go rather than COPY . . ?

DrkJvck
Автор

you're not explaining any line of code and why you do this .what's the point?

pripri-hd