Skip to main content

Dockerfile

MarshioLess than 1 minutedocker

简介

Dockerfileopen in new window,Dockerfile 是一个文本文档,包含用户可以在命令行上调用来组装映像的所有命令。

Instruction

From

FROM [--platform=<platform>] <image> [AS <name>]

or

FROM [--platform=<platform>] <image>[:<tag>] [AS <name>]

or

FROM [--platform=<platform>] <image>[@<digest>] [AS <name>]

ENV

RUN

ADD

ARG

CMD

COPY

ENTRYPOINT

EXPOSE

HEALTHCHECK

LABEL

MAINTAINER

ONBUILD

SHELL

STOPSINGLE

USER

VOLUME

WORKDIR