-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
22 lines (17 loc) · 902 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM hyperiongray/ubuntujava8:1.0.0
MAINTAINER Tomas <[email protected]>
RUN mkdir -p /root/sitehound-backend/config/properties
RUN mkdir /root/sitehound-backend/config/properties-override
RUN mkdir /root/sitehound-backend/temp
RUN mkdir /root/sitehound-backend/logs
WORKDIR /root/sitehound-backend
COPY ./config/properties /root/sitehound-backend/config/properties
COPY ./config/stop-words /root/sitehound-backend/config/stop-words
COPY ./config/web-category-word-list /root/sitehound-backend/config/web-category-word-list
COPY ./src /root/sitehound-backend/src
COPY ./profiles /root/sitehound-backend/profiles
COPY ./pom.xml /root/sitehound-backend
COPY ./build.sh /root/sitehound-backend
ENV JAVA_OPTS="-server -Xms4096M -Xmx8192M -XX:MaxPermSize=256m -verbose:sizes"
RUN ["/root/sitehound-backend/build.sh"]
CMD ["java", "-jar", "/root/sitehound-backend/sitehound-backend.jar"]