Skip to content

Commit

Permalink
fix lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 16, 2024
1 parent 05d97c9 commit 1f31282
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infrastructure/aws/lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}

WORKDIR /tmp

# Install system dependencies to compile (numexpr)
RUN yum install -y gcc-c++

COPY pyproject.toml pyproject.toml
COPY LICENSE LICENSE
COPY README.md README.md
Expand All @@ -27,6 +30,9 @@ RUN rm -rdf /asset/numpy/doc/ /asset/bin /asset/geos_license /asset/Misc
RUN rm -rdf /asset/boto3*
RUN rm -rdf /asset/botocore*

# Remove system dependencies
RUN yum remove -y gcc-c++

COPY infrastructure/aws/lambda/handler.py /asset/handler.py

CMD ["echo", "hello world"]

0 comments on commit 1f31282

Please sign in to comment.