Skip to content

Shanshashvili/Docker_Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Docker_Basics

  • Create a Dockerfile for a Python application that runs a simple script (app.py) that prints "Hello, DevOps Intern!"
  • Build and run the Docker image locally.
  • Share the steps to build, run, and stop the container.

Steps

  1. Create a Dockerfile as shown in Dockerfile;
  2. Create a Python script app.py as shown in app.py;
  3. Build the Docker image:
    docker build -t python-app .
  4. Run the container:
    docker run --name python-container python-app
    

note: Using python:3.9-slim in the Dockerfile, the container automatically stops after script execution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published