Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Dockerfile #907

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.git
.gitignore
.travis.yml
account-data
docs
config.json.demo
24 changes: 11 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion shared/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down