Sign inSign up

wilsontads/nodejs-python-aws-sam-cli

By wilsontads

•Updated over 3 years ago

This image is used to combine node and python with the aws sam cli

Image
0

64

wilsontads/nodejs-python-aws-sam-cli repository overview

Example using on gitlab-cy.yml

image: wilsontads/nodejs-python-aws-sam-cli:node19.4.0-python3.9.16
stages:
  - build
# next steps

Or if you prefer to use this template to adapt.

#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
# Reference: https://github.com/docker-library/python/blob/a1af335ee34324b2f40d7e90345f9468328f6a00/3.8/alpine3.16/Dockerfile
# Reference2: https://hub.docker.com/_/python

FROM python:3.9

RUN pip install -U  --upgrade pip
#RUN apk add --no-cache --virtual .build-deps g++ python3-dev libffi-dev openssl-dev && \
#    apk add --no-cache && \
RUN pip3 install --upgrade pip setuptools
RUN pip3 install awscli --upgrade
RUN pip3 install aws-sam-cli --upgrade
RUN apt update
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && \
 apt-get install -y nodejs
#RUN apk add --update npm

CMD ["npm", "python3", "sam"]

Create a folder and create a Dockerfile with the previous content and run the following command:

docker build -t local_image .
docker login (not always)
docker tag local_image:latest wilsontads/nodejs-python-aws-sam-cli:node19.4.0-python3.9.16
docker push wilsontads/nodejs-python-aws-sam-cli:node19.4.0-python3.9.16

Tag summary

Content type

Image

Digest

sha256:6893245af…

Size

487 MB

Last updated

over 3 years ago

docker pull wilsontads/nodejs-python-aws-sam-cli:node19.4.0-python3.9.16