Create and build image from Dockerfile. Run docker container.

preview_player
Показать описание
Hello. In this session you will learn how to create your own docker image.
Tasks.
1.Create file with python script that prints “hello-world”
2.Create Dockerfile:
2a) Use the image python:3.8-slim-buster.
2b) Set the working directory within the container /app.
2c) Copy the current directory content into container at /app.
2d) Specify the command to run when the container starts.
Рекомендации по теме