docker
This commit is contained in:
parent
fa6ffd4225
commit
b783830058
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM openjdk:11-jdk
|
||||||
|
COPY . /ws
|
||||||
|
WORKDIR /ws
|
||||||
|
ENTRYPOINT ["./mvnw", "spring-boot:run", "-f", "pom.xml"]
|
@ -8,4 +8,10 @@ mvn spring-boot:run -f pom.xml
|
|||||||
## Example
|
## Example
|
||||||
```
|
```
|
||||||
curl -H "content-type: text/xml" -d @request.xml http://localhost:8080/ws
|
curl -H "content-type: text/xml" -d @request.xml http://localhost:8080/ws
|
||||||
|
```
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
```
|
||||||
|
docker build --rm -t ws .
|
||||||
|
docker run -ti --rm --name ws --network host ws
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user