Permalink
Browse files

added ENV for JAVA_OPTS

  • Loading branch information...
1 parent 8514791 commit 53dc5fe067da99f0f77c64e3028d611ad00d1a7f @jnguyenx jnguyenx committed Apr 21, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 Dockerfile
View
@@ -10,6 +10,8 @@ FROM ubuntu:16.04
ARG species=all
+ENV JAVA_OPTS ""
+
RUN apt-get -y update && apt-get install -y software-properties-common python-software-properties
# Install Java.
@@ -42,6 +44,6 @@ RUN if [ $species = "all" ]; \
fi
RUN cd /data && python configuration-generator.py
-CMD java -jar /data/owlsim-services-3.0-SNAPSHOT.jar server /data/configuration.yaml
+CMD java $JAVA_OPTS -jar /data/owlsim-services-3.0-SNAPSHOT.jar server /data/configuration.yaml
EXPOSE 8080

0 comments on commit 53dc5fe

Please sign in to comment.