Skip to main content

dockerfile

Function dockerfile 

Source
pub fn dockerfile(
    builder: &BuilderStage,
    server_port: i64,
    cmd_tail: &str,
) -> String
Expand description

The whole Dockerfile, starting with a leading newline: the builder stage, the distroless runtime stage, EXPOSE <server_port>, a comment and CMD ["/app/<bin>", "web", "-host", "0.0.0.0", "-port", "<server_port>" + cmd_tail + ] (cmd_tail is a segment list, each starting , ).