pub enum Instruction {
Show 17 variants
ADD {
checksum: Option<String>,
chown: Option<String>,
chmod: Option<String>,
link: Option<String>,
sources: Vec<String>,
destination: String,
},
ARG(BTreeMap<String, Option<String>>),
CMD(Vec<String>),
COPY {
from: Option<String>,
chown: Option<String>,
chmod: Option<String>,
link: Option<String>,
sources: Vec<String>,
destination: String,
},
ENTRYPOINT(Vec<String>),
ENV(BTreeMap<String, String>),
EXPOSE {
port: String,
protocol: Option<Protocol>,
},
FROM {
platform: Option<String>,
image: String,
alias: Option<String>,
},
LABEL(BTreeMap<String, String>),
RUN {
mount: Option<String>,
network: Option<String>,
security: Option<String>,
command: Vec<String>,
},
SHELL(Vec<String>),
STOPSIGNAL {
signal: String,
},
USER {
user: String,
group: Option<String>,
},
VOLUME {
mounts: Vec<String>,
},
WORKDIR {
path: String,
},
COMMENT(String),
EMPTY,
}
Expand description
This enum represents available instructions in a Dockerfile.
Variants§
ADD
Fields
ARG(BTreeMap<String, Option<String>>)
CMD(Vec<String>)
COPY
Fields
ENTRYPOINT(Vec<String>)
ENV(BTreeMap<String, String>)
EXPOSE
FROM
LABEL(BTreeMap<String, String>)
RUN
SHELL(Vec<String>)
STOPSIGNAL
USER
VOLUME
WORKDIR
COMMENT(String)
EMPTY
Trait Implementations§
Source§impl Debug for Instruction
impl Debug for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more