Skip to content

Instantly share code, notes, and snippets.

@inoh
Created January 20, 2021 01:28
Show Gist options
  • Save inoh/fbf362b908ebe6e6dda12d31803b790d to your computer and use it in GitHub Desktop.
Save inoh/fbf362b908ebe6e6dda12d31803b790d to your computer and use it in GitHub Desktop.
FROM public.ecr.aws/lambda/python:3.8
ENV PYTHONUNBUFFERED=1
RUN pip install poetry
COPY pyproject.toml poetry.lock ./
RUN poetry export -f requirements.txt > requirements.txt
RUN pip install -r requirements.txt
COPY ./app ${LAMBDA_TASK_ROOT}
CMD [ "main.handler" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment