Skip to content

Instantly share code, notes, and snippets.

@djangofan
Created July 19, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djangofan/4321101f1c264e1ad3e864860334e97b to your computer and use it in GitHub Desktop.
Save djangofan/4321101f1c264e1ad3e864860334e97b to your computer and use it in GitHub Desktop.
Install AWS CLI on docker container
FROM tomcat:8.5-jre8-alpine
#Metadata
LABEL version="1.0-SNAPSHOT"
LABEL description="Run ss a service"
#Install AWS CLI
RUN apk update && \
apk add --no-cache python tar && \
python -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip install --upgrade pip setuptools && \
rm -r /root/.cache
RUN apk add -U unzip && rm -rf /var/cache/apk/*
RUN pip install awscli
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment