Skip to content

Instantly share code, notes, and snippets.

@philschmid
Created December 17, 2020 09:07
Show Gist options
  • Select an option

  • Save philschmid/3d6fda8be334f25c5c613e69f2414842 to your computer and use it in GitHub Desktop.

Select an option

Save philschmid/3d6fda8be334f25c5c613e69f2414842 to your computer and use it in GitHub Desktop.
FROM public.ecr.aws/lambda/python:3.8
# Copy function code and models into our /var/task
COPY ./ ${LAMBDA_TASK_ROOT}/
# install our dependencies
RUN python3 -m pip install -r requirements.txt --target ${LAMBDA_TASK_ROOT}
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "handler.handler" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment