option to set JVM parameters, especially system properties
diff --git a/Dockerfile b/Dockerfile
index cb2d7ef..2d24fc3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,12 +24,15 @@
 # define url prefix for running jenkins behind Apache (https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache)
 ENV JENKINS_PREFIX /
 
+# override JAVA_OPTS using `docker run --env` to pass custom JVM parameters, typically `-D...` system properties 
+ENV JAVA_OPTS ""
+
 # for main web interface:
 EXPOSE 8080
 
 # will be used by attached slave agents:
 EXPOSE 50000
 
-COPY ./jenkins.sh /usr/local/bin/jenkins.sh
 USER jenkins
-CMD ["/usr/local/bin/jenkins.sh"]
+
+ENTRYPOINT java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war --prefix=$JENKINS_PREFIX
diff --git a/README.md b/README.md
index 3c5f453..2221ac3 100644
--- a/README.md
+++ b/README.md
@@ -50,6 +50,15 @@
 
 <a href="https://registry.hub.docker.com/u/maestrodev/build-agent/">Here</a> is an example docker container you can use as a build server with lots of good tools installed - which is well worth trying.
 
+# Passing JVM parameters
+
+You might need to customize the JVM running Jenkins, typically to pass system properties or tweak heap memory settings. Use JAVA_OPTS environment 
+variable for this purpose :
+
+```
+docker run --name myjenkins -p 8080:8080 -env JAVA_OPTS=-Dhudson.footerURL=http://mycompany.com jenkins
+```
+
 # Installing more tools
 
 You can run your container as root - and unstall via apt-get, install as part of build steps via jenkins tool installers, or you can create your own Dockerfile to customise, for example: 
diff --git a/jenkins.sh b/jenkins.sh
deleted file mode 100755
index 57863bb..0000000
--- a/jenkins.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-exec java -jar /usr/share/jenkins/jenkins.war --prefix=$JENKINS_PREFIX