-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (27 loc) · 916 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
27
28
29
30
31
32
33
34
35
FROM library/ubuntu
MAINTAINER Adam Ormandy [email protected]
ENV LANG C.UTF-8
RUN apt-get update
#RUN apt-get upgrade
RUN apt-get install -y maven
RUN apt-get install -y openjdk-8-jdk maven
RUN apt-get install -y python3
RUN apt-get install -y wget
RUN apt-get install -y unzip
RUN apt-get clean
RUN mkdir /usr/src/sentiment
RUN mkdir /usr/src/sentiment/libs
RUN mkdir /usr/src/sentiment/resources
RUN mkdir /usr/src/sentiment/src
ADD ./resources /usr/src/sentiment/resources
ADD ./config.ini /usr/src/sentiment/config.ini
ADD ./src /usr/src/sentiment/src
ADD ./pom.xml /usr/src/sentiment/pom.xml
ADD ./download_datasets.sh /usr/src/sentiment/download_datasets.sh
WORKDIR /usr/src/sentiment
RUN ./download_datasets.sh
RUN mvn install
RUN apt-get remove -y unzip
RUN apt-get remove -y maven
RUN apt-get remove -y wget
ENTRYPOINT ["java","-jar","target/but_sentiment-jar-with-dependencies.jar"]