- && apk add --no-cache \
- openjdk8="$JAVA_ALPINE_VERSION" \
- && [ "$JAVA_HOME" = "$(docker-java-home)" ]
-
-
-#add activemq to the docker image
-RUN mkdir /home/downloads
-RUN mkdir /home/activemq
-RUN cd /home/downloads
-RUN apt-get update
-RUN apt-get install -y wget
-RUN wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz
-RUN tar -xzvf apache-activemq-5.9.0-bin.tar.gz -C /home/activemq/
-RUN rm -rf /home/downloads
-
-#add holmes related resources to the docker image
-RUN mkdir /home/holmes
+ && apk add --no-cache \
+ openjdk8="$JAVA_ALPINE_VERSION" \
+ && [ "$JAVA_HOME" = "$(docker-java-home)" ]
+
+#install neccessary tools
+RUN apk upgrade \
+ && apk update \
+ && apk add --no-cache curl \
+ && apk add --no-cache wget \
+ && apk add --no-cache postgresql-client=10.5-r0
+ && apk add --no-cache nss
+
+#switch the user to holmes
+RUN addgroup -S holmes && adduser -S -G holmes holmes
+
+#add the backend package to the docker image