Amazon Linux with AWS SAM CLI and Python 3.9
439
Dockerfile:
FROM amazonlinux:latest
RUN yum install -y wget unzip git tar make
# install SAM
RUN wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip \
&& unzip aws-sam-cli-linux-x86_64.zip -d sam-installation \
&& ./sam-installation/install
# install Python
RUN yum install -y gcc openssl-devel bzip2-devel libffi-devel
RUN wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz \
&& tar xzf Python-3.9.6.tgz \
&& cd Python-3.9.6 \
&& ./configure --enable-optimizations \
&& make altinstall \
&& rm -f /opt/Python-3.9.6.tgz
Build from Mac M1:
docker build --platform linux/amd64 --tag=creatiwww/sam-amazonlinux .
docker push creatiwww/sam-amazonlinux
docker pull creatiwww/sam-amazonlinux:latest