1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-09-29 07:19:07 +00:00

Merge pull request #29 from Mendor/dockerize

Add simple Dockerfile.
This commit is contained in:
arnaudroques 2017-01-26 10:03:33 +01:00 committed by GitHub
commit b1dbb8f0cd
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
=======================