-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 950 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 950 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
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /opt/satria
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl ca-certificates git docker.io bash gnupg unzip tar gzip \
&& rm -rf /var/lib/apt/lists/*
# Best-effort install scanner CLIs. If network is restricted during build,
# the app still works in SATRIA_DEMO_MODE=true.
RUN (curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin) || true
RUN (curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin) || true
RUN (curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin) || true
COPY requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
COPY app ./app
COPY samples ./samples
RUN mkdir -p /data/reports
EXPOSE 8080