diff --git a/.dockerignore b/.dockerignore index b0464de10..0bc4df4ac 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ .git +.gitignore +.travis.yml account-data -docs \ No newline at end of file +config.json.demo \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e47a4ba13..187388624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ -FROM python:3.7-slim as cloudmapper - +FROM python:3.7-slim AS cloudmapper LABEL maintainer="https://github.com/0xdabbad00/" LABEL Project="https://github.com/duo-labs/cloudmapper" - EXPOSE 8000 +RUN apt-get update && apt-get install --assume-yes \ + autoconf \ + build-essential \ + libtool \ + python3-tk \ + && rm -rf /var/lib/apt/lists/* WORKDIR /opt/cloudmapper -ENV AWS_DEFAULT_REGION=us-east-1 - -RUN apt-get update -y -RUN apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli -RUN apt-get install -y bash - -COPY . /opt/cloudmapper -RUN pip install -r requirements.txt - -RUN bash +COPY requirements.txt . +RUN pip install --requirement requirements.txt +COPY . . +CMD ["bash"] \ No newline at end of file diff --git a/shared/audit.py b/shared/audit.py index 0154a7020..cd27feb89 100644 --- a/shared/audit.py +++ b/shared/audit.py @@ -574,7 +574,7 @@ def audit_route53(findings, region): region, "FOREIGN_HOSTED_ZONE", hosted_zone, - resource_datails={ + resource_details={ "vpc_id": vpc, "vpc_regions": region_name, },