Created
May 24, 2023 14:55
-
-
Save joecks/69ff8b0ed0f76ecd497b623a56116d4a to your computer and use it in GitHub Desktop.
lambda docker file with nodejs and python
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 public.ecr.aws/lambda/python:3.10 | |
SHELL ["/usr/bin/bash", "-c"] | |
RUN yum install -y tar gzip | |
RUN touch ~/.bashrc | |
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
RUN . ~/.nvm/nvm.sh && nvm install 12 | |
RUN ln -s /root/.nvm/versions/node/v12.22.12/bin/node /usr/bin/node | |
COPY . ./ | |
RUN python3 -m pip install -r requirements.txt | |
CMD ["app.functions.provisioning.lambda_handler"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment