From b7838300585b8538209b814e14a4503c85f4399a Mon Sep 17 00:00:00 2001 From: manalejandro Date: Mon, 20 May 2019 00:21:02 +0200 Subject: [PATCH] docker --- Dockerfile | 4 ++++ README.md | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..69279ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:11-jdk +COPY . /ws +WORKDIR /ws +ENTRYPOINT ["./mvnw", "spring-boot:run", "-f", "pom.xml"] \ No newline at end of file diff --git a/README.md b/README.md index 696c7f9..45e47e4 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,10 @@ mvn spring-boot:run -f pom.xml ## Example ``` 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 ``` \ No newline at end of file