Skip to content

Commit 94999a6

Browse files
Chorroandresgomezfrr
authored andcommitted
Update Dockerfile base image (#18)
* Update Dockerfile base image * Update Dockerfile
1 parent b3c7835 commit 94999a6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

docker/build/Dockerfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM java:openjdk-8-jre
1+
FROM openjdk:8-jre-slim
22

33
MAINTAINER agomez@wizzie.io
44

5-
RUN apt-get update
6-
RUN apt-get install -y gettext-base
5+
RUN apt-get update -y && apt-get install -y gettext-base && rm -rf /var/lib/apt/lists/*
76

87
RUN mkdir -p /var/log/reputation-otx
98

@@ -14,14 +13,13 @@ ADD log4j2.xml /opt/reputation-otx/config/
1413
ADD config_env.json /opt/reputation-otx/config/
1514
ADD otx-service-start.sh /bin
1615

17-
ENV METRIC_ENABLE true
18-
ENV METRIC_INTERVAL 60000
19-
ENV INTERVAL_MS 1800000
20-
ENV REPUTATION_TOPIC otx-reputation
21-
ENV BOOTSTRAP_KAFKA_TOPICS [\"__reputation_otx_bootstrap\"]
22-
ENV METRIC_KAFKA_TOPIC __metrics
23-
24-
ENV JVM_OPTIONS -Xmx512m -Xms512m
16+
ENV METRIC_ENABLE=true \
17+
METRIC_INTERVAL=60000 \
18+
INTERVAL_MS=1800000 \
19+
REPUTATION_TOPIC=otx-reputation \
20+
BOOTSTRAP_KAFKA_TOPICS=[\"__reputation_otx_bootstrap\"] \
21+
METRIC_KAFKA_TOPIC=__metrics \
22+
JVM_OPTIONS="-Xmx512m -Xms512m"
2523

2624
CMD /bin/otx-service-start.sh
2725

0 commit comments

Comments
 (0)