Skip to content

Instantly share code, notes, and snippets.

@joecks
Created May 24, 2023 14:55
Show Gist options
  • Save joecks/69ff8b0ed0f76ecd497b623a56116d4a to your computer and use it in GitHub Desktop.
Save joecks/69ff8b0ed0f76ecd497b623a56116d4a to your computer and use it in GitHub Desktop.
lambda docker file with nodejs and python
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