Files
hello-world-in-docker/Dockerfile.python
2024-07-27 22:24:07 +02:00

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"]