diff --git a/Dockerfile b/Dockerfile
index 68f077e..9aa20d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,4 +5,4 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
rm -rf /var/lib/apt/lists/*
-ADD target/plantuml.war /var/lib/jetty/webapps/ROOT.war
+ADD target/plantuml.war /var/lib/jetty/webapps/ROOT.war
\ No newline at end of file
diff --git a/Dockerfile.openshift b/Dockerfile.openshift
new file mode 100644
index 0000000..a89fb39
--- /dev/null
+++ b/Dockerfile.openshift
@@ -0,0 +1,20 @@
+FROM maven:3-jdk-8
+
+RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/*
+
+COPY pom.xml /app/
+COPY src /app/src/
+
+ENV MAVEN_CONFIG=/app/.m2
+WORKDIR /app
+RUN mvn package
+
+# chmod required to ensure any user can run the app
+RUN mkdir /app/.m2 && chmod -R a+w /app
+EXPOSE 8080
+ENV HOME /app
+
+CMD java -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war
+
+# To run with debugging enabled instead
+#CMD java -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -Dorg.eclipse.jetty.LEVEL=DEBUG -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war
diff --git a/pom.xml b/pom.xml
index 63de1dd..4183d11 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
5
- /plantuml
+ ${jetty.contextpath}
@@ -42,6 +42,27 @@
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 2.3
+
+
+ package
+ copy
+
+
+
+ org.mortbay.jetty
+ jetty-runner
+ 8.1.9.v20130131
+ jetty-runner.jar
+
+
+
+
+
+
org.apache.maven.plugins
maven-war-plugin
@@ -149,6 +170,7 @@
UTF-8
8.0.4.v20111024
8080
+ /plantuml
yyyyMMdd-HHmm
${maven.build.timestamp}