Add simple Dockerfile

This commit is contained in:
Mendor 2017-01-26 09:32:35 +02:00
parent 69c1098299
commit 39c8589c52
2 changed files with 19 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM maven:3-jdk-8
ADD . /app
WORKDIR /app
EXPOSE 8080
CMD ["mvn", "jetty:run"]

View File

@ -32,6 +32,19 @@ You can specify the port at which it runs:
mvn jetty:run -Djetty.port=9999"
```
How to run the server with Docker
=================================
```
docker build -t plantuml-server .
docker run -d -p 8080:8080 plantuml-server
```
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
=======================