pub struct DockerConfig {Show 16 fields
pub base_image: String,
pub python_version: String,
pub workdir: String,
pub entrypoint: Option<Vec<String>>,
pub cmd: Option<Vec<String>>,
pub expose: Vec<u16>,
pub env: HashMap<String, String>,
pub copy: Vec<String>,
pub user: Option<String>,
pub labels: HashMap<String, String>,
pub apt_packages: Vec<String>,
pub build_args: HashMap<String, String>,
pub multi_stage: bool,
pub dev_deps: bool,
pub pre_copy: Vec<String>,
pub post_copy: Vec<String>,
}Expand description
Docker configuration from pyproject.toml
Fields§
§base_image: StringBase image (default: python:3.11-slim)
python_version: StringPython version for base image
workdir: StringWorking directory in container (default: /app)
entrypoint: Option<Vec<String>>Entrypoint command
cmd: Option<Vec<String>>Default command
expose: Vec<u16>Ports to expose
env: HashMap<String, String>Environment variables
copy: Vec<String>Additional files/directories to copy
user: Option<String>User to run as
labels: HashMap<String, String>Image labels
apt_packages: Vec<String>APT packages to install
build_args: HashMap<String, String>Build arguments
multi_stage: boolUse multi-stage build
dev_deps: boolInstall dev dependencies
pre_copy: Vec<String>Custom Dockerfile commands (inserted before COPY)
post_copy: Vec<String>Custom Dockerfile commands (inserted after COPY)
Implementations§
Trait Implementations§
Source§impl Clone for DockerConfig
impl Clone for DockerConfig
Source§fn clone(&self) -> DockerConfig
fn clone(&self) -> DockerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DockerConfig
impl Debug for DockerConfig
Auto Trait Implementations§
impl Freeze for DockerConfig
impl RefUnwindSafe for DockerConfig
impl Send for DockerConfig
impl Sync for DockerConfig
impl Unpin for DockerConfig
impl UnwindSafe for DockerConfig
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