Docker to build 3rd party modules
examples/app/Dockerfile
FROM amazonlinux RUN yum install -y python36 RUN yum install -y findutils which wget RUN wget https://bootstrap.pypa.io/get-pip.py && \ python3 get-pip.py WORKDIR /opt
docker build -t aws .
- In the project directory:
rm -rf pypi docker run -v $(pwd):/opt --rm aws pip install -r requirements.txt -t pypi
zip -r ../project.zip *
- Upload the zip file.