Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (16 sloc) 575 Bytes
FROM amazonlinux:latest
VOLUME ["/export"]
RUN yum -y update
RUN yum install -y binutils gcc python27-devel python27-pip zip
RUN pip install virtualenv
RUN virtualenv /venv
COPY . /assemyaml
WORKDIR /assemyaml
ENV VIRTUAL_ENV=/venv
ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN rm -f /lambda.zip
RUN cp assemyaml/lambda_handler.py .
RUN zip -r /lambda.zip assemyaml lambda_handler.py
RUN pip install -r requirements.txt
WORKDIR /venv/lib/python2.7/site-packages
RUN zip -r /lambda.zip . --exclude botocore\* boto3\* setuptools/\* pip/\*
You can’t perform that action at this time.