Hello world (Docker)
Hello world docker tutorial for Extra Horizon task functions
def handler(event, context):
print("Hello world!")FROM public.ecr.aws/lambda/python:3.9
# Copy function code
COPY app.py ${LAMBDA_TASK_ROOT}
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "app.handler" ]Building the docker image
Gaining access to the docker registry
Sending the docker image to the register
Running the task
Important
Last updated