Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nitin27may/docker-images-example
- Owner: nitin27may
- Created: 2022-09-27T00:30:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T23:13:11.000Z (3 months ago)
- Last Synced: 2024-10-31T00:19:11.521Z (3 months ago)
- Topics: docker, dockerfile
- Language: HTML
- Homepage: https://nitinksingh.com/pushing-custom-images-to-docker-hub-using-github-actions/
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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