Skip to content

Instantly share code, notes, and snippets.

@sofianhamiti
Created March 15, 2021 13:35
Show Gist options
  • Save sofianhamiti/6195624f9b79c5be5d9506fb3db35a6c to your computer and use it in GitHub Desktop.
Save sofianhamiti/6195624f9b79c5be5d9506fb3db35a6c to your computer and use it in GitHub Desktop.
FROM public.ecr.aws/lambda/python:3.8
# Install dependencies
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt --no-cache
# Copy inference code
COPY predict.py utils.py ${LAMBDA_TASK_ROOT}/
CMD [ "predict.handler" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment