diff --git a/Dockerfile b/Dockerfile
index b4257c5..2054a9e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,16 @@
-FROM maven:3.6.3-jdk-8
+FROM maven:3.6.3-jdk-8 as build
-ARG LODE_EXTERNAL_URL
-ARG WEBVOWL_EXTERNAL_URL
-ARG USE_HTTPS
+ARG LODE_EXTERNAL_URL=true
+ARG WEBVOWL_EXTERNAL_URL=true
+ARG USE_HTTPS=false
-RUN cd /opt && \
- git clone https://github.com/essepuntato/LODE.git
+WORKDIR /opt/LODE
+COPY . .
RUN echo "externalURL=${LODE_EXTERNAL_URL}\nwebvowl=${WEBVOWL_EXTERNAL_URL}\nuseHTTPs=${USE_HTTPS}" > /opt/LODE/src/main/webapp/config.properties
+RUN mvn clean package
-#RUN cat /opt/LODE/src/main/webapp/config.propexxwties
-
-WORKDIR /opt/LODE
-
-EXPOSE 8080
+FROM jetty
+COPY --from=build /opt/LODE/target/LODE-1.3-SNAPSHOT.war /var/lib/jetty/webapps/lode.war
-ENTRYPOINT ["mvn", "clean", "jetty:run"]
+EXPOSE 80
diff --git a/README.md b/README.md
index 9c40f40..fc31646 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,21 @@
# Live OWL Documentation Environment (LODE)
This repository is a Tomcat server application that can be used to create HTML documentation for [Web Ontology Language](https://www.w3.org/OWL/) (OWL) ontologies.
+## Running
-## Example usage:
+You can run the application natively with:
-1. Launch application:
+ mvn clean jetty:run
+
+You can also use Docker. Build an image with:
- `mvn clean jetty:run`
+ docker build -t essepuntato/lode .
+
+Run a container with:
-2. Test
+ docker run --rm -d -p 8080:8080 essepuntato/lode
+
+## Usage
Try running LODE with the following ontologies:
@@ -19,7 +26,6 @@ Try running LODE with the following ontologies:
* it is a very tiny ontology visualised online using LODE at .
* You can run try using a local instance of LODE to generate HTML for the local copy of PROMS and compare it with the online version made by the PROMS creator
-
## Contacts
**Silvio Peroni**
*Creator*
diff --git a/pom.xml b/pom.xml
index 9411f84..b7d52c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,6 +5,7 @@
it.essepuntato
LODE
1.3-SNAPSHOT
+ war
UTF-8
@@ -119,6 +120,7 @@
org.mortbay.jetty
jetty-maven-plugin
+ 11.0.7
src/main/resources/jetty/jetty.xml
9966