-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.develop
42 lines (33 loc) · 1.07 KB
/
Dockerfile.develop
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
FROM griefed/baseimage-ubuntu-jdk-8:2.0.0 AS builder
RUN \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
libatomic1 && \
git clone \
-b develop \
https://github.com/SuK-IT/Monitoring.git \
/tmp/monitoring && \
chmod +x /tmp/monitoring/gradlew* && \
cd /tmp/monitoring && \
./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build --info -x test && \
ls -ahl ./build/libs/
FROM griefed/baseimage-ubuntu-jdk-8:2.0.0
LABEL maintainer="Griefed <[email protected]>"
LABEL description="Simple monitoring app. Serves as monitor and agent."
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
RUN \
echo "**** Bring system up to date ****" && \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
iputils-ping && \
echo "**** Creating our folder(s) ****" && \
mkdir -p \
/app/monitoring/data && \
echo "**** Cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
COPY --from=builder tmp/monitoring/build/libs/Monitoring.jar /app/monitoring/monitoring.jar
COPY root/ /
VOLUME /config
EXPOSE 8080