开始使用免费开始使用

理解一个 Dockerfile

下面给出了一个没有注释解释各条 Docker 指令的 Dockerfile。请阅读并理解该 Dockerfile。

FROM python:3.10

COPY . .

RUN pip install -r requirements.txt

ENTRYPOINT ["python", "hello_world.py"]

本练习是课程的一部分

Containerization and Virtualization Concepts

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习