-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 908 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 908 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11-slim
LABEL maintainer="Toc Consulting <tarek@tocconsulting.fr>"
LABEL description="AWS S3 security scanner with compliance mapping for CIS, PCI-DSS, HIPAA, SOC 2, ISO, and GDPR"
LABEL version="1.0.1"
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install system dependencies (needed for some Python packages)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
COPY pyproject.toml README.md LICENSE ./
COPY s3_security_scanner/ ./s3_security_scanner/
# Install the package
RUN pip install --no-cache-dir .
# Create output directory
RUN mkdir -p /app/output
# Set default output directory
ENV S3_SCANNER_OUTPUT_DIR=/app/output
# Default entrypoint
ENTRYPOINT ["s3-security-scanner"]
# Default command (show help)
CMD ["--help"]