Skip to content

Instantly share code, notes, and snippets.

@sofianhamiti
Created February 14, 2021 16:30
Show Gist options
  • Save sofianhamiti/ad5d85d1fff3984ec3a1aab263c3b7e4 to your computer and use it in GitHub Desktop.
Save sofianhamiti/ad5d85d1fff3984ec3a1aab263c3b7e4 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 ${LAMBDA_TASK_ROOT}/
CMD [ "predict.handler" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment