-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 801 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (24 loc) · 801 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
# Joern CLI container for CPG generation and caching.
FROM eclipse-temurin:21-jdk-jammy
RUN apt-get update && apt-get install -y \
curl \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
ENV JOERN_VERSION=4.0.555
ENV JOERN_HOME=/opt/joern
RUN mkdir -p ${JOERN_HOME} && \
cd /tmp && \
wget -q https://github.com/joernio/joern/releases/download/v${JOERN_VERSION}/joern-install.sh && \
chmod +x joern-install.sh && \
sed -i 's/sudo //g' joern-install.sh && \
./joern-install.sh && \
rm -rf joern-install.sh joern-cli.zip
ENV PATH="${JOERN_HOME}/joern-cli:${JOERN_HOME}/joern-cli/bin:${PATH}"
RUN mkdir -p /playground
RUN joern --help
RUN echo '#!/bin/bash\n\
set -e\n\
tail -f /dev/null\n\
' > /entrypoint.sh && chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]