-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (34 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
43 lines (34 loc) · 1.46 KB
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
37
38
39
40
41
42
43
# Ubuntu 24.04
FROM ubuntu:noble-20250127
WORKDIR /home/ubuntu/
RUN apt update
# Install Python 3.12 & Virtual Environment package
RUN apt-get install --no-install-recommends -y python3
RUN apt install python3.12-venv -y
# Create a virtual environment to install Python packages in
ENV VIRTUAL_ENV=/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install environment dependencies
RUN apt install nano
RUN apt install unzip -y
RUN apt install curl -y
RUN apt install git -y
RUN apt install default-jdk -y
# macOS dependencies (Not tested if the environment works on Mac with only these dependencies since 8/2024)
#RUN apt install cargo -y
#RUN pip install maturin
WORKDIR /home/ubuntu/
# Install Python dependencies
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt --no-deps
# Setup Giskard & Dependency-Check & garak files
COPY giskard/llm_scan.py giskard/llm_scan.py
COPY garak_misc/garak_config.yaml garak_misc/garak_config.yaml
COPY Dependency-Check/dependency-check-example-report.html Dependency-Check/dependency-check-example-report.html
WORKDIR /home/ubuntu/Dependency-Check
RUN VERSION=$(curl -s https://dependency-check.github.io/DependencyCheck/current.txt) && \
curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip && \
unzip dependency-check.zip && \
rm -rf dependency-check.zip
WORKDIR /home/ubuntu/