Just a normal hello world app from python
176
Hello World Python Docker Image
Description: This Docker repository contains a basic "Hello World" Python application packaged into a Docker image. It demonstrates a simple setup to run a Python script within a Docker container.
Repository Structure:
Dockerfile: This file defines the steps to build the Docker image. It includes instructions to set up the environment, copy the Python script, and specify the command to run when the container starts.
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy the Python script into the container
COPY hello.py .
# Define the command to run the script
CMD ["python", "hello.py"]
hello.py: This is a simple Python script that prints "Hello, World!" to the console.
# hello.py
print("Hello, World!")
Usage:
Building the Docker Image:
Dockerfile and hello.py.docker build -t hello-python .
Running the Docker Container:
docker run hello-python
Additional Notes:
Contributions: Contributions to improve the clarity, efficiency, or functionality of this repository are welcome. Feel free to submit pull requests or open issues for discussion.
Content type
Image
Digest
sha256:06622767a…
Size
45.5 MB
Last updated
over 2 years ago
docker pull unshul/hello-world-app