diff --git a/sam/Dockerfile b/sam/Dockerfile index caa553d..08c08df 100644 --- a/sam/Dockerfile +++ b/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"]