-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (33 loc) · 1.1 KB
/
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
36
37
38
39
40
41
42
43
44
FROM griefed/baseimage-ubuntu-jdk-8:2.0.5 AS builder
ARG BRANCH_OR_TAG=master
RUN \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
libatomic1 && \
git clone \
-b $BRANCH_OR_TAG \
https://github.com/SuK-IT/ChatBot.git \
/tmp/chatbot && \
chmod +x /tmp/chatbot/gradlew* && \
cd /tmp/chatbot && \
./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build --info -x test && \
ls -ahl ./build/libs/
FROM griefed/baseimage-ubuntu-jdk-8:2.0.5
LABEL maintainer="Griefed <[email protected]>"
LABEL description="Chatbot in Java as backend and Quasar as frontend."
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
RUN \
echo "**** Bring system up to date ****" && \
apt-get update && apt-get upgrade -y && \
echo "**** Creating our folder(s) ****" && \
mkdir -p \
/app/chatbot/data && \
echo "**** Cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
COPY --from=builder tmp/chatbot/build/libs/ChatBot.jar /app/chatbot/chatbot.jar
COPY root/ /
COPY backend/main/resources/dictionary.json /defaults/dictionary.json
VOLUME /config
EXPOSE 8080