12 lines
246 B
Docker
12 lines
246 B
Docker
# Use the official Python image as the base image
|
|
FROM python:3.9.19
|
|
|
|
# Set the working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy the hello_world.py script into the container
|
|
COPY hello_world.py .
|
|
|
|
# Run the script
|
|
CMD ["python3", "hello_world.py"]
|