![]() ![]() Learn more about Dockerfile and building Docker images here. The best part of this is that we can then use the same Docker image that was just built on a completely different computing environment (with Docker installed over there of course). We can use docker build -t xxx command to build our image and then docker run -d - name xxx -p xxx to serve our application. Here’s a simple example, if your application requires NodeJS and running npm install to work, we can simply define everything we need inside our Dockerfile i.e.: # Example of a NodeJS application DockerfileĮNV PATH /usr/src/app/node_modules/.bin:$PATHĬMD Example of a NodeJS application Dockerfile Dockerizing Your Application For Different Computing Environmentsĭocker images are defined within special text files called Dockerfile, and it requires us to define all the steps explicitly inside the Dockerfile. Today, with a Docker image, we could easily package up our code and all its dependencies into a Docker container that can run quickly and reliably from one computing environment to another. Python, NodeJS, etc.) of your app before your application can run. Long gone are the days when you need to SSH into your production server and install the dependencies (i.e. If you are looking for tools recommendation beyond VSCode and Git, read on.ĭocker Pricing: Free Photo Credits: Docker In this article, I will be sharing some of my favorite tools that I use as a back-end developer. ![]() Also, using Git is indisputable and I believe we are all on the same page. These are tools that we live and breathe with at our jobs daily, and chances are, we can’t work effectively without them.įor the most part, everyone has their favorite code editor like Vim, Sublime Text, Atom, VSCode, etc., I am not going to bring those up. ![]() ![]() Every developer has a toolset that we will use while coding. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |