├── app.py └── Dockerfile /app.py: -------------------------------------------------------------------------------- 1 | print("Hello World") 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | 3 | # Set the working directory in the image 4 | WORKDIR /app 5 | 6 | # Copy the files from the host file system to the image file system 7 | COPY . /app 8 | 9 | # Install the necessary packages 10 | RUN apt-get update && apt-get install -y python3 python3-pip 11 | 12 | # Set environment variables 13 | ENV NAME World 14 | 15 | # Run a command to start the application 16 | CMD ["python3", "app.py"] 17 | --------------------------------------------------------------------------------