Docker: change base image to use alpine
-FROM ubuntu:16.04
+FROM openjdk:8-jre-alpine
-RUN apt-get update && apt-get install -y software-properties-common && \
- apt-get install -y openjdk-8-jre && \
- java -version && \
- rm -rf /var/lib/apt/lists/* && \
- apt-get clean;
+ARG buildPath="./build/"
-RUN apt-get update && \
- apt-get install ca-certificates-java && \
- apt-get clean && \
- update-ca-certificates -f;
+ENV CELLBASE_HOME=/opt/cellbase
-ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
-RUN export JAVA_HOME
+RUN apk --no-cache --update add openssh-client sshpass ca-certificates curl && \
+ adduser -D -u 1001 cellbase -h cellbase
-ARG buildPath="./build"
-
-WORKDIR /opt/cellbase
-ENV BASEDIR=/opt/cellbase
-
-RUN useradd -u 1001 --create-home cellbase
-
-COPY ${buildPath} /opt/cellbase
-
-ENTRYPOINT [ "/bin/bash" ]
+COPY ${buildPath} ${CELLBASE_HOME}
+WORKDIR ${CELLBASE_HOME}/bin
