<!-- Love localstack? Please consider supporting our collective:
👉  https://opencollective.com/localstack/donate -->

# Type of request: This is a ...

[x] bug report
[ ] feature request

# Detailed description
When `mountCode: true` for a serverless.yml deployment to localstack on Windows, Localstack mounts the wrong path.
...

## Expected behavior
Docker expects the Windows client path value of the `-v` flag to begin with `/host_mtn/`.
...

## Actual behavior
Localstack does not add this to the Windows client path. This causes the volume sharing to fail. Once one tries to invoke a lambda without the proper volume sharing, the lambda fails with an error along the lines of "can't find no module 'lambda_name'".
...

# Steps to reproduce
1. In your `serverless.yml` set `mountCode: true` 
2. In your `docker-compose.yml` set the environment variable `LAMBDA_REMOTE_DOCKER: "0"` for the localstack container
3. Deploy some test lambda to the localstack container
4. Attempt to invoke with `awslocal lambda invoke --function-name LAMBDA_NAME out.txt` and replace LAMBDA_NAME with the name of your test lambda.
5. Note the invocation failure.

## Command used to start LocalStack
Started via a `docker-compose.yml` file. Pretty basic stuff.
...

## Client code (AWS SDK code snippet, or sequence of "awslocal" commands)
Just the `awslocal` invoke command outlined above.
...

def execute_java_lambda(self, event, context, main_file, func_details=None):
        handler = func_details.handler
        opts = config.LAMBDA_JAVA_OPTS if config.LAMBDA_JAVA_OPTS else ''
        event_file = EVENT_FILE_PATTERN.replace('*', short_uid())
        save_file(event_file, json.dumps(event))
        TMP_FILES.append(event_file)
        class_name = handler.split('::')[0]
        classpath = '%s:%s:%s' % (main_file, Util.get_java_classpath(main_file), LAMBDA_EXECUTOR_JAR)
        cmd = 'java %s -cp %s %s %s %s' % (opts, classpath, LAMBDA_EXECUTOR_CLASS, class_name, event_file)
        LOG.warning(cmd)
        result = self.run_lambda_executor(cmd, func_details=func_details)
        return result
class Util:
    debug_java_port = False
    @classmethod
    def get_java_opts(cls):
        opts = config.LAMBDA_JAVA_OPTS or ''
        
        if '_debug_port_' in opts:
            if not cls.debug_java_port:
                cls.debug_java_port = get_free_tcp_port()
            opts = opts.replace('_debug_port_', ('%s' % cls.debug_java_port))
        else:
            
            m = re.match('.*address=(\\d+).*', opts)
            if m is not None:
                cls.debug_java_port = m.groups()[0]
        return opts
    @classmethod
    def get_host_path_for_path_in_docker(cls, path):