Skip to content

Commit

Permalink
Merge pull request #60 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 4551485 + 0bea220 commit b6e78a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Use the Amazon Linux 2023 image compatible with AWS Lambda
FROM amazonlinux:2023

# Install Python 3 and ZIP
RUN yum install -y python3 python3-pip zip && \
yum clean all
# Install Python 3.9 and ZIP
RUN dnf install -y python3.9 python3.9-pip zip && \
dnf clean all

# Set up the work directory
WORKDIR /root
Expand All @@ -12,9 +12,9 @@ WORKDIR /root
COPY . .

# Install application and dependencies into a directory named 'python'
RUN pip3 install --upgrade pip && \
pip3 install . --target python && \
pip3 install -r requirements.txt --target python
RUN python3.9 -m pip install --upgrade pip && \
python3.9 -m pip install . --target python && \
python3.9 -m pip install -r requirements.txt --target python

# Package everything into a ZIP file
CMD ["zip", "-r", "layer.zip", "python"]

0 comments on commit b6e78a1

Please sign in to comment.