Crate dockerfile
source ·Expand description
A crate for dynamically generating Dockerfiles.
Structs
The
ARG
instruction defines a variable that users can pass at build-time to the builder with
the docker build
command using the --build-arg <varname>=<value>
flag.The main purpose of a
CMD
is to provide defaults for an executing container.The
COPY
instruction copies new files or directories from <src>
and adds them to the
filesystem of the container at the path <dest>
.Parser directives are optional, and affect the way in which subsequent lines in a
Dockerfile
are handled.A Dockerfile represented in code.
A Dockerfile builder.
An
ENTRYPOINT
allows you to configure a container that will run as an executable.The
FROM
instruction initializes a new build stage and sets the base image for subsequent
instructions.The
RUN
instruction will execute any commands in a new layer on top of the current image and
commit the results.