Skip to content

Instantly share code, notes, and snippets.

@ardeshir
Forked from sonjisov/Dockerfile
Created March 10, 2019 17:21
Show Gist options
  • Save ardeshir/74627d2075c8d4db4091ee5e03a3ff1f to your computer and use it in GitHub Desktop.
Save ardeshir/74627d2075c8d4db4091ee5e03a3ff1f to your computer and use it in GitHub Desktop.
FROM amazonlinux:latest
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
RUN export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] \
&& \. "$NVM_DIR/nvm.sh" && [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" \
&& nvm install v6.10.0 \
&& npm install serverless -g \
&& npm install newman -g \
&& npm install serverless-localstack -g
# Installing pip
RUN yum install -y python-pip
RUN yum install -y python-setuptools
RUN easy_install-2.6 pip
RUN pip install awscli-local
RUN echo "All done"
# Run with docker run --rm -v /git:/git -it my-dev-image-yo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment