HUB
Sign inSign up

creatiwww/sam-amazonlinux

By creatiwww

•Updated over 4 years ago

Amazon Linux with AWS SAM CLI and Python 3.9

Image
0

439

creatiwww/sam-amazonlinux repository overview

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
Tag summary
Recent tags
Content type
Image
Digest
sha256:c1bb72fc1…
Size
654.4 MB
Last updated
over 4 years ago
docker pull creatiwww/sam-amazonlinux:latest