Skip to content

Commit

Permalink
Merge pull request #419 from unclejack/use_jre
Browse files Browse the repository at this point in the history
Dockerfile: use the JRE image, not JDK
  • Loading branch information
william-richard committed Mar 17, 2016
2 parents 357d401 + 71a7d8c commit 88db542
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
FROM java:8-jdk
FROM java:8-jre
MAINTAINER Gabe Conradi <[email protected]>

RUN apt-get update && apt-get install -y zip unzip && rm -r /var/lib/apt/lists/*

# Solr cores should be stored in a volume, so we arent writing stuff to our rootfs
VOLUME /opt/collins/conf/solr/cores/collins/data

COPY . /build/collins
RUN cd /build && \
RUN apt-get update && \
apt-get install --no-install-recommends -y openjdk-8-jdk zip unzip && \
rm -r /var/lib/apt/lists/* && \
cd /build && \
export ACTIVATOR_VERSION=1.3.7 && \
wget -q http://downloads.typesafe.com/typesafe-activator/$ACTIVATOR_VERSION/typesafe-activator-$ACTIVATOR_VERSION-minimal.zip -O /build/activator.zip && \
unzip -q ./activator.zip && \
cd collins && \
java -version 2>&1 && \
PLAY_CMD=/build/activator-$ACTIVATOR_VERSION-minimal/activator ./scripts/package.sh && \
unzip -q /build/collins/target/collins.zip -d /opt/ && \
cd / && rm -rf /build
cd / && rm -rf /build && \
rm -rf /root/.ivy2 && \
rm -rf /root/.sbt && \
apt-get remove -y --purge openjdk-8-jdk && \
apt-get autoremove --purge -y && \
apt-get clean && \
rm /var/log/dpkg.log

WORKDIR /opt/collins

Expand Down

0 comments on commit 88db542

Please sign in to comment.