diff --git a/Dockerfile b/Dockerfile index 7a4948d..aa9ffe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM maven:3-jdk-8 -RUN apt-get update && apt-get install -y --no-install-recommends graphviz && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && rm -rf /var/lib/apt/lists/* ADD . /app WORKDIR /app EXPOSE 8080 diff --git a/README.md b/README.md index 2a79ec4..03c88c0 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,19 @@ The server is now listing to [http://localhost:8080/plantuml](http://localhost:8 You may specity the port in `-p` Docker command line argument. +Alternate: How to run the server with Tomcat + Docker? +====================================================== + +Above method uses maven to run the application. That requires internet connectivity. That is undesireable in a corporate environment with firewalls. So, you can use following command to create a self-contained docker image that will "just-work". + +``` +docker build -t platuml-server:tomcat8 -f Dockerfile.tomcat8 . +docker run -d -p 8080:8080 plantuml-server:tomcat8 +``` +The server is now listing to [http://localhost:8080/plantuml](http://localhost:8080/plantuml). + +You may specity the port in `-p` Docker command line argument. + How to generate the war =======================