Skip to content

Commit

Permalink
chagne sam image not to use alpine, due to aws/aws-cli#4971
Browse files Browse the repository at this point in the history
  • Loading branch information
Willis Chou committed Apr 24, 2021
1 parent 0d9f055 commit 0930678
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sam/Dockerfile
@@ -1,5 +1,10 @@
FROM python:3.9.4-alpine
FROM python:3.9.4
LABEL description="AWS SAM cli"
RUN apk --update --no-cache add curl zip gcc linux-headers musl-dev
# use google dns
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
RUN apt-get update && apt-get install zip gcc musl-dev
RUN pip install aws-sam-cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install
ENTRYPOINT ["/bin/sh", "-l", "-c"]

0 comments on commit 0930678

Please sign in to comment.