https://github.com/raghul-m/deploying_docker-app-on-render_using_githubactions
https://github.com/raghul-m/deploying_docker-app-on-render_using_githubactions
ci-cd devops docker github-actions render streamlit
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raghul-m/deploying_docker-app-on-render_using_githubactions
- Owner: Raghul-M
- Created: 2024-08-20T16:14:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-18T12:46:56.000Z (6 months ago)
- Last Synced: 2025-12-27T22:46:51.469Z (6 months ago)
- Topics: ci-cd, devops, docker, github-actions, render, streamlit
- Language: Python
- Homepage: https://streamlit-portfolio-v1.onrender.com/
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploying_Docker-App-on-Render_Using_Githubactions
# Streamlit Portfolio Application

This repository contains the code for a Streamlit-based portfolio application, which has been dockerized and is deployed on Render using GitHub Actions. The project showcases how to build, containerize, and deploy a Streamlit application seamlessly using Docker and automated CI/CD pipelines. new one
## Running the Application Locally
To run the Streamlit application locally, use the following command:
```bash
streamlit run app.py
```
This command will start the Streamlit server and open your application in a web browser.
## Building and Running with Docker
### 1. Log in to Docker Hub
Before building the Docker image, you need to log in to Docker Hub. Replace `` with your Docker Hub username:
```bash
docker login -u
```
### 2. Build the Docker Image
Build the Docker image using the Dockerfile in the root of the repository. Replace `` with your Docker Hub username:
```bash
docker build -t /streamlit-portfolio:v1 .
```
This command will create a Docker image tagged with `v1`.
### 3. Verify Docker Images
List all Docker images on your local machine to ensure that the build was successful:
```bash
docker images
```
### 4. Run the Docker Container
Run the Docker container using the image you built. This command will map port `8051` on your local machine to port `8051` in the container. Replace `` with your Docker Hub username:
```bash
docker run -d --name portfolio -p 8051:8051 /streamlit-portfolio:v1
```
The application should now be accessible at `http://localhost:8051`.
### 5. Push the Docker Image to Docker Hub
Finally, push the Docker image to Docker Hub to make it available for deployment. Replace `` with your Docker Hub username:
```bash
docker push /streamlit-portfolio:v1
```
## Deployment
The Docker image can be deployed to various platforms, such as Render, AWS, or any other cloud provider that supports Docker containers.

## Contributing
Contributions are welcome! If you have suggestions, bug reports, or want to add new features, feel free to submit a pull request.
Feel free to explore, contribute, and adapt this project to suit your needs. If you encounter any issues or have suggestions for improvement, please raise them in the GitHub repository's issues section. Happy coding! 🚀
Connect with me on linkedin: [Raghul M](https://www.linkedin.com/in/m-raghul/)