-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
26 lines (18 loc) · 833 Bytes
/
Dockerfile
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
FROM python:3.7-slim-buster
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
apt-get update && apt-get upgrade -y --no-install-recommends && \
apt-get install -y openjdk-11-jre-headless && \
apt-get install -y --no-install-recommends wget libarchive13 libcurl4 libxml2 python-magic && \
apt-get -t buster-backports install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
RUN wget http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu18.04.deb && \
dpkg -i srcml_1.0.0-1_ubuntu18.04.deb
WORKDIR /usr/src/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY tools tools
RUN chmod +x tools/RefactoringMiner-2.0/bin/RefactoringMiner
COPY szz szz
COPY options.py .
COPY main.py .
ENTRYPOINT [ "python", "-u", "main.py" ]