-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from unclejack/use_jre
Dockerfile: use the JRE image, not JDK
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|