def __init__(self,  <EOL>runtime,<EOL>handler,<EOL>code_dir,<EOL>layers,<EOL>image_builder,<EOL>memory_mb=<NUM_LIT>,<EOL>env_vars=None,<EOL>debug_options=None):
if not Runtime.has_value(runtime):<EOL><INDENT>raise ValueError("<STR_LIT>".format(runtime))<EOL><DEDENT>image = LambdaContainer._get_image(image_builder, runtime, layers)<EOL>ports = LambdaContainer._get_exposed_ports(debug_options)<EOL>entry = LambdaContainer._get_entry_point(runtime, debug_options)<EOL>additional_options = LambdaContainer._get_additional_options(runtime, debug_options)<EOL>additional_volumes = LambdaContainer._get_additional_volumes(debug_options)<EOL>cmd = [handler]<EOL>super(LambdaContainer, self).__init__(image,<EOL>cmd,<EOL>self._WORKING_DIR,<EOL>code_dir,<EOL>memory_limit_mb=memory_mb,<EOL>exposed_ports=ports,<EOL>entrypoint=entry,<EOL>env_vars=env_vars,<EOL>container_opts=additional_options,<EOL>additional_volumes=additional_volumes)<EOL>
Initializes the class

Parameters
----------
runtime str
    Name of the Lambda runtime
handler str
    Handler of the function to run
code_dir str
    Directory where the Lambda function code is present. This directory will be mounted
    to the container to execute
layers list(str)
    List of layers
image_builder samcli.local.docker.lambda_image.LambdaImage
    LambdaImage that can be used to build the image needed for starting the container
memory_mb int
    Optional. Max limit of memory in MegaBytes this Lambda function can use.
env_vars dict
    Optional. Dictionary containing environment variables passed to container
debug_options DebugContext
    Optional. Contains container debugging info (port, debugger path)