malik-devops / ftm-golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go run init
go mod tidy

## docker

Docker is a platform designed to help developers build, share, and run container applications.

We will start by build the image.
 ```docker build -t ftm-golang .```

Check if the image is built.
 ```docker images```

To verify if the image is built successfully.
```docker run -p 8090:8080 -d ftm-golang```

Check if the image is running successfully.
 ```docker ps```

Tag the image.
 ```docker tag ftm-golang:latest <user-name>/product-api:latest```

Check if the image is created
 ```docker images```

Push the image on dockerhub repository.
 ```docker push <user-name>/product-api:latest```

About


Languages

Language:Go 96.9%Language:Dockerfile 3.1%