Skip to content

Commit

Permalink
Merge pull request #76 from rhettre/feature/release-workflow
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
rhettre authored Jul 27, 2024
2 parents 687be83 + 41d6d97 commit 7e8f0db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM public.ecr.aws/lambda/python:3.9
WORKDIR /var/task

# Install necessary build tools
RUN yum install -y zip gcc python3-devel
RUN yum install -y zip gcc python3-devel libffi-devel

# Copy your application code and requirements.txt into the Docker image
COPY . .
Expand All @@ -21,7 +21,6 @@ RUN pip install --upgrade pip setuptools wheel && \
--python-version 3.9 \
--only-binary=:all: --upgrade \
-r requirements.txt -t /tmp/python && \
pip install cffi --no-binary :all: -t /tmp/python && \
pip install . -t /tmp/python && \
cd /tmp/python && \
find . -type d -name "__pycache__" -exec rm -rf {} + && \
Expand Down

0 comments on commit 7e8f0db

Please sign in to comment.