Documentation
¶
Overview ¶
Package commands contains the set of Dockerfile commands.
Index ¶
Constants ¶
View Source
const ( Add = "ADD" Cmd = "CMD" Copy = "COPY" Entrypoint = "ENTRYPOINT" Env = "ENV" Expose = "EXPOSE" Extract = "EXTRACT" From = "FROM" Label = "LABEL" Maintainer = "MAINTAINER" Onbuild = "ONBUILD" Run = "RUN" User = "USER" Volume = "VOLUME" Workdir = "WORKDIR" )
List of Dockerfile commands.
Variables ¶
View Source
var Commands = map[string]struct{}{ Add: {}, Cmd: {}, Copy: {}, Entrypoint: {}, Env: {}, Expose: {}, Extract: {}, From: {}, Label: {}, Maintainer: {}, Onbuild: {}, Run: {}, User: {}, Volume: {}, Workdir: {}, }
Commands is a set of all Dockerfile commands.
View Source
var FilesystemModifierCommands = map[string]struct{}{ Add: {}, Copy: {}, Extract: {}, Run: {}, }
FilesystemModifierCommands is a subset of commands that typically modify the filesystem of a container and require a commit.
View Source
var ReplaceEnvAllowed = map[string]struct{}{ Add: {}, Copy: {}, Env: {}, Expose: {}, Extract: {}, Label: {}, User: {}, Volume: {}, Workdir: {}, }
ReplaceEnvAllowed is a subset of commands for which environment variable interpolation will happen.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.