Skip to main content

Module dockerfile

Module dockerfile 

Source
Expand description

Dockerfile parsing and representation

This module provides types and functions for parsing Dockerfiles into a structured representation that can be used for analysis, validation, and conversion to buildah commands.

Structs§

AddInstruction
ADD instruction (similar to COPY but with URL and archive support)
ArgInstruction
ARG instruction
CopyInstruction
COPY instruction
Dockerfile
A parsed Dockerfile
EnvInstruction
ENV instruction
ExposeInstruction
EXPOSE instruction
RunInstruction
RUN instruction with optional BuildKit features
Stage
A single stage in a multi-stage Dockerfile
VariableContext
Builder for tracking variable state during Dockerfile processing

Enums§

CacheSharing
Cache sharing mode for RUN –mount=type=cache
ExposeProtocol
Protocol for EXPOSE instruction
HealthcheckInstruction
HEALTHCHECK instruction
ImageRef
A reference to a Docker image
Instruction
A single Dockerfile instruction
RunMount
Mount types for RUN –mount
RunNetwork
Network mode for RUN –network
RunSecurity
Security mode for RUN –security
ShellOrExec
Represents a command that can be in shell form or exec form

Functions§

expand_variables
Expand variables in a string using the provided ARG and ENV maps.
expand_variables_in_list
Expands variables in a list of strings