mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 16:58:54 +00:00
Add simple Dockerfile
This commit is contained in:
parent
69c1098299
commit
39c8589c52
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM maven:3-jdk-8
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
CMD ["mvn", "jetty:run"]
|
13
README.md
13
README.md
@ -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
|
||||
=======================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user