Created
May 6, 2024 09:32
-
-
Save tsh-code/a739c16fe3312d46400d9dc96a8eaf66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazon/aws-lambda-python:3.9 | |
COPY ./requirements.txt . | |
RUN yum -y install gcc-c++ | |
RUN pip install --no-cache-dir torch --extra-index-url https://download.pytorch.org/whl/cpu | |
RUN pip install --no-cache-dir -r requirements.txt | |
ENV HOME /tmp | |
COPY handler.py ${LAMBDA_TASK_ROOT} | |
CMD ["handler.main"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment