-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.generate
More file actions
30 lines (24 loc) · 931 Bytes
/
Dockerfile.generate
File metadata and controls
30 lines (24 loc) · 931 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
FROM debian:12
RUN apt update && apt install -y zlib1g-dev curl gcc expect make wget gettext zip unzip git python3
# install jdk19 sbt
RUN mkdir -p /data/App \
&& cd /data/App \
&& wget https://github.com/sbt/sbt/releases/download/v1.9.8/sbt-1.9.8.zip \
&& unzip *.zip \
&& rm *.zip \
&& mv sbt/ sbt-1.9.8/ \
&& wget https://download.oracle.com/java/19/archive/jdk-19.0.2_linux-x64_bin.tar.gz \
&& tar zxvf *.tar.gz \
&& rm *.tar.gz
# Prepare Joern with our diffs.
WORKDIR /
COPY analyze/joern.diff /root/joern.diff
RUN git clone https://github.com/joernio/joern.git \
&& cd joern \
&& git checkout 0e2e8ef6f15f8d3c5423563a31ee6713be5d35dc \
&& git apply /root/joern.diff
WORKDIR /joern/
ENV LANG=en_US.UTF-8 \
JAVA_HOME=/data/App/jdk-19.0.2 \
PATH=/data/App/sbt-1.9.8/bin:/data/App/jdk-19.0.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN sbt stage