Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nitin27may/docker-images-example

Very Simple Example to build Custom Docker Image
https://github.com/nitin27may/docker-images-example

docker dockerfile

Last synced: 30 days ago
JSON representation

Very Simple Example to build Custom Docker Image

Awesome Lists containing this project

README

        

# Nginx Custom Image
Very Simple Example to build Custom Docker Image.

Steps: [Details](https://nitinksingh.com/pushing-custom-images-to-docker-hub-using-github-actions/)

To build custom image, run below command, here . (dot) is to use current folder as context.
```
docker build -t my-custom-nginx .
```

To run the custom image, you can run below command and it will run your image on port 8080

```
docker run --name nginx-container -d -p 8080:80 my-custom-nginx
```

Now You can make changes in inde.html, re build it and run it and see the changes