pub enum Instruction {
Show 16 variants
Add {
checksum: Option<String>,
chown: Option<String>,
chmod: Option<String>,
link: Option<String>,
sources: Vec<String>,
destination: String,
},
Arg {
name: String,
default: 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(HashMap<String, String>),
Expose {
port: String,
protocol: Option<Protocol>,
},
From {
platform: Option<String>,
image: String,
alias: Option<String>,
},
Label(HashMap<String, String>),
Run {
mount: Option<String>,
network: Option<String>,
security: Option<String>,
command: Vec<String>,
},
Shell(Vec<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
Cmd(Vec<String>)
Copy
Fields
Entrypoint(Vec<String>)
Env(HashMap<String, String>)
Expose
From
Label(HashMap<String, String>)
Run
Shell(Vec<String>)
User
Volume
Workdir
Comment(String)
Empty
Trait Implementations§
Source§impl Debug for Instruction
impl Debug for Instruction
Source§impl Display for Instruction
impl Display for Instruction
Source§impl FromStr for Instruction
impl FromStr 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