File size: 708 Bytes
7c89ed7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM amazonlinux:2
# Base dependencies
RUN yum update -y
RUN yum install @development wget -y
RUN yum install python python-dev python-pip -y
ADD requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
# Add packer from hashicorp binary to pin version
RUN wget https://releases.hashicorp.com/packer/1.3.1/packer_1.3.1_linux_amd64.zip
RUN unzip packer_1.3.1_linux_amd64.zip
RUN mv packer /usr/local/bin/packer
RUN chmod u+x /usr/local/bin/packer
RUN echo -n "PS1=\"[deploy-shell][\u@\h \W]\$ \"" >> /root/.bashrc
# Setup a home for deployment
RUN mkdir -p /opt/mozdef
RUN mkdir -p /.aws/cli/cache
RUN chown --recursive 1000:1000 /.aws/cli/cache
# Force this as the entrypoint
WORKDIR /opt/mozdef
|