Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.09 KB

dockerfile.md

File metadata and controls

23 lines (13 loc) · 1.09 KB

docker compose

https://docs.docker.com/engine/reference/builder/

syntax

FROM [--platform=] [AS ]

ENV ENV = ...

ADD [--chown=:] ... # The ADD instruction copies new files, directories or remote file URLs from and adds them to the filesystem of the image at the path .

COPY [--chown=:] ... # The COPY instruction copies new files or directories from and adds them to the filesystem of the container at the path .

EXPOSE [/...] The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime. You can specify whether the port listens on TCP or UDP, and the default is TCP if the protocol is not specified.

RUN executes command(s) in a new layer and creates a new image. E.g., it is often used for installing software packages.

CMD sets default command and/or parameters, which can be overwritten from command line when docker container runs.

ENTRYPOINT configures a container that will run as an executable.

...