To test the application locally using Docker, follow these steps:
-
Build the Docker image:
docker build . -t right
-
Run the Docker container:
docker run -p 5000:5000 -t right
To deploy the application to Google Cloud Run, follow these steps:
-
Tag the Docker image with your Docker Hub repository:
docker tag right mostafa117/etl
Replace
right
with the name of your local Docker image andmostafa117/etl
with your Docker Hub repository name. -
Push the Docker image to Docker Hub:
docker push mostafa117/etl
-
YouTube Video: Docker Tutorial for Beginners This video provides a beginner-friendly tutorial on Docker, covering concepts such as containerization and Dockerfile.
-
Medium Article: Containerizing FastAPI App with Docker - A Comprehensive Guide This Medium article offers a comprehensive guide on containerizing a FastAPI application using Docker, covering topics such as Dockerfile creation and Docker Compose.
-
Medium Article: Deploy a Python Flask Server Using Google Cloud Run This Medium article provides a tutorial on deploying a Python Flask server to Google Cloud Run, demonstrating how to containerize the Flask app with Docker and deploy it to Google Cloud Run.