Create docker image for AWS Java Lambda function

Solution for Create docker image for AWS Java Lambda function
is Given Below:

We have created Lambda function using SpringCloud Function and created Jar

Now we want to create a Docker image using different base images.

Can someone suggest a way to do this?

below are code for spring handlers:

public class ExportCompressorEventHandler
        extends SpringBootRequestHandler<Map<String, Object>, String> {}

@Component
@RequiredArgsConstructor
@Slf4j
public class ExportCompressorEventFunction implements Function<Map<String, Object>, String> {}