-
Notifications
You must be signed in to change notification settings - Fork 6
/
javaWorkerDockerfile
43 lines (34 loc) · 1.11 KB
/
javaWorkerDockerfile
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
FROM python:3.7.4-buster
RUN mkdir /decompilers
WORKDIR /decompilers
COPY requirements_worker.txt /tmp/requirements_worker.txt
COPY requirements_test.txt /tmp/requirements_test.txt
RUN pip install --upgrade pip && \
pip --retries 10 install -r /tmp/requirements_worker.txt
# Generic
RUN apt-get update && \
apt-get install --no-install-recommends -y build-essential apt-transport-https && \
apt-get install --no-install-recommends -y gnutls-bin \
host \
unzip \
xauth \
xvfb \
zenity \
zlib1g \
zlib1g-dev \
zlibc && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Install OpenJDK-11
RUN apt update && \
echo 'deb http://ftp.de.debian.org/debian buster main' >> /etc/apt/sources.list && \
apt update && \
apt-get install --no-install-recommends -y openjdk-11-jdk && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Downloading CFR:
RUN echo "installing cfr..." && \
mkdir /cfr && \
wget https://www.benf.org/other/cfr/cfr-0.148.jar -O /cfr/cfr.jar && \
echo "cfr installed"
RUN ln -Ts /decompilers/ /daas